* [Qemu-devel] [PATCH] Store correct IPs
@ 2008-06-04 15:41 Alexander Graf
0 siblings, 0 replies; only message in thread
From: Alexander Graf @ 2008-06-04 15:41 UTC (permalink / raw)
To: qemu-devel
[-- Attachment #1: Type: text/plain, Size: 133 bytes --]
If a VMEXIT occurs, the IP value needs to be current. This is the case
with most instructions, except for CPUID and invlpg.
Alex
[-- Attachment #2: qemu-svn-ip.patch --]
[-- Type: text/x-patch, Size: 766 bytes --]
Index: target-i386/translate.c
===================================================================
--- target-i386/translate.c (revision 4661)
+++ target-i386/translate.c (working copy)
@@ -6407,6 +6407,7 @@
break;
#endif
case 0x1a2: /* cpuid */
+ gen_jmp_im(s->pc - s->cs_base);
tcg_gen_helper_0_0(helper_cpuid);
break;
case 0xf4: /* hlt */
@@ -6700,8 +6701,8 @@
}
} else {
gen_lea_modrm(s, modrm, ®_addr, &offset_addr);
+ gen_jmp_im(s->pc - s->cs_base);
tcg_gen_helper_0_1(helper_invlpg, cpu_A0);
- gen_jmp_im(s->pc - s->cs_base);
gen_eob(s);
}
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-06-04 16:38 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-04 15:41 [Qemu-devel] [PATCH] Store correct IPs Alexander Graf
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).