aboutsummaryrefslogtreecommitdiff
path: root/hw/ppce500_spin.c
diff options
context:
space:
mode:
authorAndreas Färber <afaerber@suse.de>2012-05-02 23:26:21 +0200
committerAndreas Färber <afaerber@suse.de>2012-10-31 01:02:44 +0100
commitf324e7667a3c1f1aed9a5169a63aaac628feef47 (patch)
tree406e4887b2f03a4da99a79bed386fee62ea26ba1 /hw/ppce500_spin.c
parentb6444a42c06371d5abba78d2553a088a8490a65b (diff)
cpu: Move stopped field to CPUState
Change its type to bool. Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'hw/ppce500_spin.c')
-rw-r--r--hw/ppce500_spin.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/ppce500_spin.c b/hw/ppce500_spin.c
index 04e7e65d44..fb5461d588 100644
--- a/hw/ppce500_spin.c
+++ b/hw/ppce500_spin.c
@@ -92,6 +92,7 @@ static void mmubooke_create_initial_mapping(CPUPPCState *env,
static void spin_kick(void *data)
{
SpinKick *kick = data;
+ CPUState *cpu = CPU(kick->cpu);
CPUPPCState *env = &kick->cpu->env;
SpinInfo *curspin = kick->spin;
hwaddr map_size = 64 * 1024 * 1024;
@@ -113,7 +114,7 @@ static void spin_kick(void *data)
env->halted = 0;
env->exception_index = -1;
- env->stopped = 0;
+ cpu->stopped = false;
qemu_cpu_kick(env);
}