[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] Store correct IPs
From: |
Alexander Graf |
Subject: |
[Qemu-devel] [PATCH] Store correct IPs |
Date: |
Wed, 04 Jun 2008 17:41:13 +0200 |
User-agent: |
Thunderbird 2.0.0.12 (X11/20071114) |
If a VMEXIT occurs, the IP value needs to be current. This is the case
with most instructions, except for CPUID and invlpg.
Alex
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);
}
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-devel] [PATCH] Store correct IPs,
Alexander Graf <=