From a6dc4c2d95f7b7bd95a53e8c2e524a8a202b4d1f Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Thu, 11 Aug 2011 16:07:19 -0700 Subject: pxa: Pass in address_space to pxa{255, 270}_init Signed-off-by: Richard Henderson Signed-off-by: Avi Kivity --- hw/tosa.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'hw/tosa.c') diff --git a/hw/tosa.c b/hw/tosa.c index 7b407f4f64..92702d148a 100644 --- a/hw/tosa.c +++ b/hw/tosa.c @@ -20,6 +20,7 @@ #include "ssi.h" #include "blockdev.h" #include "sysbus.h" +#include "exec-memory.h" #define TOSA_RAM 0x04000000 #define TOSA_ROM 0x00800000 @@ -206,6 +207,7 @@ static void tosa_init(ram_addr_t ram_size, const char *kernel_filename, const char *kernel_cmdline, const char *initrd_filename, const char *cpu_model) { + MemoryRegion *address_space_mem = get_system_memory(); PXA2xxState *cpu; TC6393xbState *tmio; DeviceState *scp0, *scp1; @@ -213,7 +215,7 @@ static void tosa_init(ram_addr_t ram_size, if (!cpu_model) cpu_model = "pxa255"; - cpu = pxa255_init(tosa_binfo.ram_size); + cpu = pxa255_init(address_space_mem, tosa_binfo.ram_size); cpu_register_physical_memory(0, TOSA_ROM, qemu_ram_alloc(NULL, "tosa.rom", TOSA_ROM) | IO_MEM_ROM); -- cgit v1.2.3