summaryrefslogtreecommitdiffstats
path: root/hw/core/loader.c
diff options
context:
space:
mode:
authorPeter Maydell2018-12-14 14:30:48 +0100
committerPeter Maydell2018-12-14 14:30:48 +0100
commit3c8133f973767460f8e42c9e656f2f3ed703d00d (patch)
treec4c81c69036ee9f15608d4b4cf3ae035a269b09c /hw/core/loader.c
parentexec.c: Rename cpu_physical_memory_write_rom_internal() (diff)
downloadqemu-3c8133f973767460f8e42c9e656f2f3ed703d00d.tar.gz
qemu-3c8133f973767460f8e42c9e656f2f3ed703d00d.tar.xz
qemu-3c8133f973767460f8e42c9e656f2f3ed703d00d.zip
Rename cpu_physical_memory_write_rom() to address_space_write_rom()
The API of cpu_physical_memory_write_rom() is odd, because it takes an AddressSpace, unlike all the other cpu_physical_memory_* access functions. Rename it to address_space_write_rom(), and bring its API into line with address_space_write(). Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Acked-by: Michael S. Tsirkin <mst@redhat.com> Message-id: 20181122133507.30950-3-peter.maydell@linaro.org
Diffstat (limited to 'hw/core/loader.c')
-rw-r--r--hw/core/loader.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/core/loader.c b/hw/core/loader.c
index aa0b3fc867..66a616608a 100644
--- a/hw/core/loader.c
+++ b/hw/core/loader.c
@@ -1103,8 +1103,8 @@ static void rom_reset(void *unused)
void *host = memory_region_get_ram_ptr(rom->mr);
memcpy(host, rom->data, rom->datasize);
} else {
- cpu_physical_memory_write_rom(rom->as, rom->addr, rom->data,
- rom->datasize);
+ address_space_write_rom(rom->as, rom->addr, MEMTXATTRS_UNSPECIFIED,
+ rom->data, rom->datasize);
}
if (rom->isrom) {
/* rom needs to be written only once */