diff options
Diffstat (limited to 'target-i386/exec.h')
-rw-r--r-- | target-i386/exec.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target-i386/exec.h b/target-i386/exec.h index f1cf2b9234..f6d05e0358 100644 --- a/target-i386/exec.h +++ b/target-i386/exec.h @@ -578,7 +578,7 @@ 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->hflags & HF_HALTED_MASK)) return 0; /* disable halt condition */ if ((env->interrupt_request & CPU_INTERRUPT_HARD) && |