summaryrefslogtreecommitdiffstats
path: root/hw/highbank.c
diff options
context:
space:
mode:
authorAndreas Färber <afaerber@suse.de>2012-05-14 01:05:40 +0200
committerAndreas Färber <afaerber@suse.de>2012-06-11 00:23:04 +0200
commit5d309320e3e419187b48b4537d403daf95835bc6 (patch)
treeb0b854173fdf1897e6030328bbf1bfddbe10ab2c /hw/highbank.c
parent9543b0cdd64ac0ba109b92eaf00e458b6223a6a8 (diff)
downloadhqemu-5d309320e3e419187b48b4537d403daf95835bc6.zip
hqemu-5d309320e3e419187b48b4537d403daf95835bc6.tar.gz
arm_boot: Pass ARMCPU to arm_boot_info::secondary_cpu_reset_hook()
Adapt highbank accordingly. Signed-off-by: Andreas Färber <afaerber@suse.de> Acked-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/highbank.c')
-rw-r--r--hw/highbank.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/hw/highbank.c b/hw/highbank.c
index 45ca1ad..66ff042 100644
--- a/hw/highbank.c
+++ b/hw/highbank.c
@@ -60,8 +60,10 @@ static void hb_write_secondary(ARMCPU *cpu, const struct arm_boot_info *info)
rom_add_blob_fixed("smpboot", smpboot, sizeof(smpboot), SMP_BOOT_ADDR);
}
-static void hb_reset_secondary(CPUARMState *env, const struct arm_boot_info *info)
+static void hb_reset_secondary(ARMCPU *cpu, const struct arm_boot_info *info)
{
+ CPUARMState *env = &cpu->env;
+
switch (info->nb_cpus) {
case 4:
stl_phys_notdirty(SMP_BOOT_REG + 0x30, 0);
OpenPOWER on IntegriCloud