]> git.proxmox.com Git - qemu.git/blobdiff - target-arm/op_helper.c
Merge remote-tracking branch 'sweil/mingw' into staging
[qemu.git] / target-arm / op_helper.c
index a52231346c34484152b5113695b64b63b4e7fc9c..a918e5b27a044735c76b3f811759a607cb2e8e6f 100644 (file)
@@ -218,8 +218,10 @@ uint32_t HELPER(usat16)(CPUARMState *env, uint32_t x, uint32_t shift)
 
 void HELPER(wfi)(CPUARMState *env)
 {
+    CPUState *cs = CPU(arm_env_get_cpu(env));
+
     env->exception_index = EXCP_HLT;
-    env->halted = 1;
+    cs->halted = 1;
     cpu_loop_exit(env);
 }