qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] Bug in AMD64 emulation Was: [AMD64] Possible problem with the DF flag during the SYSCALL instruction
@ 2008-03-25 19:45 Jakub Jermar
  2008-03-25 20:26 ` Alexander Graf
  0 siblings, 1 reply; 3+ messages in thread
From: Jakub Jermar @ 2008-03-25 19:45 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 222 bytes --]

Hi,

as no one has picked my previous report up yet, I am resending my patch 
again.  The patch fixes a bug in the way QEMU emulates AMD64 instruction 
called SYSCALL.  The problem appears to be stale DF variable.

Jakub


[-- Attachment #2: patch --]
[-- Type: text/plain, Size: 382 bytes --]

--- helper.c	2008-01-06 20:38:45.000000000 +0100
+++ helper.c.new	2008-03-20 22:39:17.000000000 +0100
@@ -1008,6 +1008,7 @@
                                DESC_S_MASK |
                                DESC_W_MASK | DESC_A_MASK);
         env->eflags &= ~env->fmask;
+	DF = 1 - (2 * ((env->eflags >> 10) & 1));
         if (code64)
             env->eip = env->lstar;
         else

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-03-27 11:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-25 19:45 [Qemu-devel] [PATCH] Bug in AMD64 emulation Was: [AMD64] Possible problem with the DF flag during the SYSCALL instruction Jakub Jermar
2008-03-25 20:26 ` Alexander Graf
2008-03-27 11:38   ` Jakub Jermar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).