x86-64: recompute DF after eflags has been modified when emulating SYSCALL
authoraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>
Fri, 28 Mar 2008 22:30:30 +0000 (22:30 +0000)
committeraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>
Fri, 28 Mar 2008 22:30:30 +0000 (22:30 +0000)
(Jakub Jermar)

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4120 c046a42c-6fe2-441c-8c8c-71466251a162

target-i386/helper.c

index c0fb78f..4f197a0 100644 (file)
@@ -1008,6 +1008,7 @@ void helper_syscall(int next_eip_addend)
                                DESC_S_MASK |
                                DESC_W_MASK | DESC_A_MASK);
         env->eflags &= ~env->fmask;
+        load_eflags(env->eflags, 0);
         if (code64)
             env->eip = env->lstar;
         else