summaryrefslogtreecommitdiffstats
path: root/hw/core
diff options
context:
space:
mode:
authorEdgar E. Iglesias2013-12-13 07:28:52 +0100
committerEdgar E. Iglesias2014-02-11 13:57:44 +0100
commit2a221651949a8dcf74faa0989d7b0dda96a76911 (patch)
tree5fddb49fd96221b47b158828b620ee8e413c10e1 /hw/core
parentexec: Make stb_phys input an AddressSpace (diff)
downloadqemu-2a221651949a8dcf74faa0989d7b0dda96a76911.tar.gz
qemu-2a221651949a8dcf74faa0989d7b0dda96a76911.tar.xz
qemu-2a221651949a8dcf74faa0989d7b0dda96a76911.zip
exec: Make cpu_physical_memory_write_rom input an AS
Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Diffstat (limited to 'hw/core')
-rw-r--r--hw/core/loader.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/core/loader.c b/hw/core/loader.c
index 0634bee20c..e1c3f3a860 100644
--- a/hw/core/loader.c
+++ b/hw/core/loader.c
@@ -778,7 +778,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->addr, rom->data, rom->datasize);
+ cpu_physical_memory_write_rom(&address_space_memory,
+ rom->addr, rom->data, rom->datasize);
}
if (rom->isrom) {
/* rom needs to be written only once */