diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-05-28 16:25:20 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-05-28 16:25:20 +0000 |
commit | 093f8f06323206697afe29b8def82883182d6480 (patch) | |
tree | d55afc5d13c70733c8e568d290e8dfd0787e65a6 | |
parent | 872929aa59cba19fd83b98f87929ccda12a2cbbb (diff) | |
download | qemu-093f8f06323206697afe29b8def82883182d6480.zip |
force bit 1 in eflags load
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4606 c046a42c-6fe2-441c-8c8c-71466251a162
-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 5e46c5a2ce..07b4761adb 100644 --- a/target-i386/exec.h +++ b/target-i386/exec.h @@ -324,7 +324,7 @@ static inline void load_eflags(int eflags, int update_mask) CC_SRC = eflags & (CC_O | CC_S | CC_Z | CC_A | CC_P | CC_C); DF = 1 - (2 * ((eflags >> 10) & 1)); env->eflags = (env->eflags & ~update_mask) | - (eflags & update_mask); + (eflags & update_mask) | 0x2; } static inline void env_to_regs(void) |