summaryrefslogtreecommitdiff
path: root/hw/realview.c
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2012-01-17 10:54:07 +0000
committerPeter Maydell <peter.maydell@linaro.org>2012-01-17 10:54:07 +0000
commit5a15758874cfad886e637e015baa7888a0c60262 (patch)
tree10d55e64394ecb01e19471ef155fefdbe87d6b02 /hw/realview.c
parent8c4ec5c0269bda18bb777a64b2008088d1c632dc (diff)
downloadqemu-5a15758874cfad886e637e015baa7888a0c60262.tar.gz
qemu-5a15758874cfad886e637e015baa7888a0c60262.tar.bz2
qemu-5a15758874cfad886e637e015baa7888a0c60262.zip
vexpress, realview: Add (dummy) L2 cache controller
Instantiate the L2 cache controller on the ARM devboards which have one, since we have a dummy model of it now. Note that the only non-MP board with an L2x0 is the PB1176, which we don't model. Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/realview.c')
-rw-r--r--hw/realview.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/realview.c b/hw/realview.c
index 3f35118f21..d2fde4426a 100644
--- a/hw/realview.c
+++ b/hw/realview.c
@@ -227,6 +227,8 @@ static void realview_init(ram_addr_t ram_size,
for (n = 0; n < smp_cpus; n++) {
sysbus_connect_irq(busdev, n, cpu_irq[n]);
}
+ sysbus_create_varargs("l2x0", realview_binfo.smp_priv_base + 0x2000,
+ NULL);
} else {
uint32_t gic_addr = is_pb ? 0x1e000000 : 0x10040000;
/* For now just create the nIRQ GIC, and ignore the others. */