force bit 1 in eflags load
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>
Wed, 28 May 2008 16:25:20 +0000 (16:25 +0000)
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>
Wed, 28 May 2008 16:25:20 +0000 (16:25 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4606 c046a42c-6fe2-441c-8c8c-71466251a162

target-i386/exec.h

index 5e46c5a..07b4761 100644 (file)
@@ -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)