summaryrefslogtreecommitdiffstats
path: root/hw/arm
diff options
context:
space:
mode:
authorPeter Maydell2014-03-17 17:31:46 +0100
committerPeter Maydell2014-03-17 17:31:46 +0100
commitba7500852d8c3926a732892236765eee1bcaea93 (patch)
tree9f35a70228b6154801bb59fc86c8c309780e9728 /hw/arm
parentexynos4210: Set reset-cbar property of Cortex-A9 CPUs (diff)
downloadqemu-ba7500852d8c3926a732892236765eee1bcaea93.tar.gz
qemu-ba7500852d8c3926a732892236765eee1bcaea93.tar.xz
qemu-ba7500852d8c3926a732892236765eee1bcaea93.zip
virt: Set reset-cbar on CPUs
Set the reset-cbar property on CPUs used by the virt board, if they have it. This isn't necessary for correct functioning under Linux (since the A9 isn't a valid CPU for the virt board), but it is the correct behaviour. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com> Message-id: 1394462692-8871-5-git-send-email-peter.maydell@linaro.org
Diffstat (limited to 'hw/arm')
-rw-r--r--hw/arm/virt.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/hw/arm/virt.c b/hw/arm/virt.c
index 517f2fe30f..2bbc9313d2 100644
--- a/hw/arm/virt.c
+++ b/hw/arm/virt.c
@@ -390,6 +390,12 @@ static void machvirt_init(QEMUMachineInitArgs *args)
if (n > 0) {
object_property_set_bool(cpuobj, true, "start-powered-off", NULL);
}
+
+ if (object_property_find(cpuobj, "reset-cbar", NULL)) {
+ object_property_set_int(cpuobj, vbi->memmap[VIRT_CPUPERIPHS].base,
+ "reset-cbar", &error_abort);
+ }
+
object_property_set_bool(cpuobj, true, "realized", NULL);
}
fdt_add_cpu_nodes(vbi);