summaryrefslogtreecommitdiffstats
path: root/hw/omap2.c
diff options
context:
space:
mode:
authorAvi Kivity <avi@redhat.com>2011-11-23 15:17:36 +0200
committerAvi Kivity <avi@redhat.com>2011-11-28 15:38:40 +0200
commitf32261498c83bf434dde74f7832ead98678cb8ae (patch)
tree934f5d89f505aa9d30d1efb31e7724884c08659f /hw/omap2.c
parenta56e423c7c39af0fa1515d575fddfda032a02916 (diff)
downloadhqemu-f32261498c83bf434dde74f7832ead98678cb8ae.zip
hqemu-f32261498c83bf434dde74f7832ead98678cb8ae.tar.gz
omap_l4: add memory API variant of omap_l4_attach()
Also add omap_l4_region_size(), since memory API functions need the size during initialization. Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'hw/omap2.c')
-rw-r--r--hw/omap2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/omap2.c b/hw/omap2.c
index 8a0fa73..5fc3fcf 100644
--- a/hw/omap2.c
+++ b/hw/omap2.c
@@ -2260,7 +2260,7 @@ struct omap_mpu_state_s *omap2420_mpu_init(MemoryRegion *sysmem,
(sram_base = qemu_ram_alloc(NULL, "omap2.sram",
s->sram_size)) | IO_MEM_RAM);
- s->l4 = omap_l4_init(OMAP2_L4_BASE, 54);
+ s->l4 = omap_l4_init(sysmem, OMAP2_L4_BASE, 54);
/* Actually mapped at any 2K boundary in the ARM11 private-peripheral if */
cpu_irq = arm_pic_init_cpu(s->env);
OpenPOWER on IntegriCloud