From 4b3fedf3a580fbd3dccaca80feaedbda2510d77c Mon Sep 17 00:00:00 2001 From: Avi Kivity Date: Tue, 9 Aug 2011 19:35:00 +0300 Subject: omap1: convert to memory API (part I) Acked-by: Peter Maydell Signed-off-by: Avi Kivity --- hw/palm.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'hw/palm.c') diff --git a/hw/palm.c b/hw/palm.c index 4c67e75c83..d8f50e3413 100644 --- a/hw/palm.c +++ b/hw/palm.c @@ -25,6 +25,7 @@ #include "arm-misc.h" #include "devices.h" #include "loader.h" +#include "exec-memory.h" static uint32_t static_readb(void *opaque, target_phys_addr_t offset) { @@ -198,6 +199,7 @@ static void palmte_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(); struct omap_mpu_state_s *cpu; int flash_size = 0x00800000; int sdram_size = palmte_binfo.ram_size; @@ -209,7 +211,7 @@ static void palmte_init(ram_addr_t ram_size, int rom_size, rom_loaded = 0; DisplayState *ds = get_displaystate(); - cpu = omap310_mpu_init(sdram_size, cpu_model); + cpu = omap310_mpu_init(address_space_mem, sdram_size, cpu_model); /* External Flash (EMIFS) */ cpu_register_physical_memory(OMAP_CS0_BASE, flash_size, -- cgit v1.2.3