diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-05-28 17:14:10 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-05-28 17:14:10 +0000 |
commit | ce5232c5c281552039466be5eadf93a712eb7611 (patch) | |
tree | 4f39afe8e12ef9743d4bb9ba11f80c4358b76bf4 /target-i386/exec.h | |
parent | d377440d7401bec1b61d12f2103df378eea995e1 (diff) |
moved halted field to CPU_COMMON
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4609 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-i386/exec.h')
-rw-r--r-- | target-i386/exec.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target-i386/exec.h b/target-i386/exec.h index 07b4761adb..90b82f3975 100644 --- a/target-i386/exec.h +++ b/target-i386/exec.h @@ -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; |