Commit f94f7181950b9d028a919274f4787076242690b5
1 parent
9b595395
x86-64: recompute DF after eflags has been modified when emulating SYSCALL
(Jakub Jermar) git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4120 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
1 additions
and
0 deletions
target-i386/helper.c
@@ -1008,6 +1008,7 @@ void helper_syscall(int next_eip_addend) | @@ -1008,6 +1008,7 @@ void helper_syscall(int next_eip_addend) | ||
1008 | DESC_S_MASK | | 1008 | DESC_S_MASK | |
1009 | DESC_W_MASK | DESC_A_MASK); | 1009 | DESC_W_MASK | DESC_A_MASK); |
1010 | env->eflags &= ~env->fmask; | 1010 | env->eflags &= ~env->fmask; |
1011 | + load_eflags(env->eflags, 0); | ||
1011 | if (code64) | 1012 | if (code64) |
1012 | env->eip = env->lstar; | 1013 | env->eip = env->lstar; |
1013 | else | 1014 | else |