summaryrefslogtreecommitdiffstats
path: root/hw/ppce500_spin.c
diff options
context:
space:
mode:
authorLiu Yu-B13201 <Yu.Liu@freescale.com>2011-11-28 20:41:18 +0000
committerAlexander Graf <agraf@suse.de>2012-01-03 15:48:20 +0100
commit157feeadbaec09fe4dca539a24f6f6d327d6eeb6 (patch)
treeb0ef63c538ce89faa6f1e2576cd2edac56182db2 /hw/ppce500_spin.c
parent33bcd98c4e9fe0866807bef6253a057c82087539 (diff)
downloadhqemu-157feeadbaec09fe4dca539a24f6f6d327d6eeb6.zip
hqemu-157feeadbaec09fe4dca539a24f6f6d327d6eeb6.tar.gz
kvm-ppc: halt secondary cpus when guest reset
When guest reset, we need to halt secondary cpus until guest kick them. This already works for tcg. The patch add the support for kvm. Signed-off-by: Liu Yu <yu.liu@freescale.com> Signed-off-by: Alexander Graf <agraf@suse.de> [agraf: remove in-kernel irqchip code]
Diffstat (limited to 'hw/ppce500_spin.c')
-rw-r--r--hw/ppce500_spin.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/ppce500_spin.c b/hw/ppce500_spin.c
index df74953..e7b1453 100644
--- a/hw/ppce500_spin.c
+++ b/hw/ppce500_spin.c
@@ -112,6 +112,7 @@ static void spin_kick(void *data)
env->halted = 0;
env->exception_index = -1;
+ env->stopped = 0;
qemu_cpu_kick(env);
}
OpenPOWER on IntegriCloud