aboutsummaryrefslogtreecommitdiff
path: root/hw/armv7m.c
diff options
context:
space:
mode:
authorAndreas Färber <afaerber@suse.de>2012-05-04 16:11:34 +0200
committerAndreas Färber <afaerber@suse.de>2012-06-04 23:00:41 +0200
commit31363f12f56c98015a9e98dc46658f17b6477d24 (patch)
treed846eef75030586a25843a3980ac49610de866e9 /hw/armv7m.c
parent0f37c99b27b7e89c77d30c82f46485fd2bc61ab8 (diff)
armv7m: Pass ARMCPU to armv7m_reset()
Allows us to use cpu_reset() in place of cpu_state_reset(). Signed-off-by: Andreas Färber <afaerber@suse.de> Acked-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/armv7m.c')
-rw-r--r--hw/armv7m.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/hw/armv7m.c b/hw/armv7m.c
index 4e5971c575..418139aa08 100644
--- a/hw/armv7m.c
+++ b/hw/armv7m.c
@@ -149,7 +149,9 @@ static void armv7m_bitband_init(void)
static void armv7m_reset(void *opaque)
{
- cpu_state_reset((CPUARMState *)opaque);
+ ARMCPU *cpu = opaque;
+
+ cpu_reset(CPU(cpu));
}
/* Init CPU and memory for a v7-M based board.
@@ -244,7 +246,7 @@ qemu_irq *armv7m_init(MemoryRegion *address_space_mem,
vmstate_register_ram_global(hack);
memory_region_add_subregion(address_space_mem, 0xfffff000, hack);
- qemu_register_reset(armv7m_reset, env);
+ qemu_register_reset(armv7m_reset, cpu);
return pic;
}