summary refs log tree commit diff stats
path: root/hw/realview.c
diff options
context:
space:
mode:
authorEvgeny Voevodin <e.voevodin@samsung.com>2012-01-13 20:52:40 +0000
committerAndrzej Zaborowski <andrew.zaborowski@intel.com>2012-01-17 02:08:22 +0100
commit078758d0741c30d44246383ce5c2ba43281e9aec (patch)
tree45cecd4aabc82c94abf341e12f32665a77be57c2 /hw/realview.c
parentea0e68411e3276060999e2e7db569e3009fc3b81 (diff)
downloadfocaccia-qemu-078758d0741c30d44246383ce5c2ba43281e9aec.tar.gz
focaccia-qemu-078758d0741c30d44246383ce5c2ba43281e9aec.zip
hw/arm_boot.c: Make SMP boards specify address to poll in bootup loop
The secondary CPU bootloader in arm_boot.c holds secondary CPUs in a
pen until the primary CPU releases them. Make boards specify the
address to be polled to determine whether to leave the pen (it was
previously hardcoded to 0x10000030, which is a Versatile Express/
Realview specific system register address).

Signed-off-by: Evgeny Voevodin <e.voevodin@samsung.com>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Andrzej Zaborowski <andrew.zaborowski@intel.com>
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 d4191e91c8..3f35118f21 100644
--- a/hw/realview.c
+++ b/hw/realview.c
@@ -21,6 +21,7 @@
 #include "exec-memory.h"
 
 #define SMP_BOOT_ADDR 0xe0000000
+#define SMP_BOOTREG_ADDR 0x10000030
 
 typedef struct {
     SysBusDevice busdev;
@@ -96,6 +97,7 @@ static void realview_register_devices(void)
 
 static struct arm_boot_info realview_binfo = {
     .smp_loader_start = SMP_BOOT_ADDR,
+    .smp_bootreg_addr = SMP_BOOTREG_ADDR,
 };
 
 /* The following two lists must be consistent.  */