From 2a221651949a8dcf74faa0989d7b0dda96a76911 Mon Sep 17 00:00:00 2001 From: Edgar E. Iglesias Date: Fri, 13 Dec 2013 16:28:52 +1000 Subject: exec: Make cpu_physical_memory_write_rom input an AS Reviewed-by: Peter Maydell Signed-off-by: Edgar E. Iglesias --- hw/core/loader.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'hw/core') 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 */ -- cgit v1.2.3-55-g7522