]> git.proxmox.com Git - qemu.git/blobdiff - target-i386/exec.h
moved halted field to CPU_COMMON
[qemu.git] / target-i386 / exec.h
index 07b4761adb85067393aa45da503fd7ac673345ae..90b82f397565820454d42a799c2c362709326406 100644 (file)
@@ -385,13 +385,13 @@ static inline void regs_to_env(void)
 
 static inline int cpu_halted(CPUState *env) {
     /* handle exit of HALTED state */
-    if (!(env->hflags & HF_HALTED_MASK))
+    if (!env->halted)
         return 0;
     /* disable halt condition */
     if (((env->interrupt_request & CPU_INTERRUPT_HARD) &&
          (env->eflags & IF_MASK)) ||
         (env->interrupt_request & CPU_INTERRUPT_NMI)) {
-        env->hflags &= ~HF_HALTED_MASK;
+        env->halted = 0;
         return 0;
     }
     return EXCP_HALTED;