aboutsummaryrefslogtreecommitdiff
path: root/target-i386/helper.c
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2008-05-21 13:29:45 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2008-05-21 13:29:45 +0000
commit07be379fb1d4d919384001a6732e1fa81b2212a2 (patch)
tree8c287dd420b329db1beb327c36ccd019f0f8b1f6 /target-i386/helper.c
parent9d0763c4c0bc7840a3113abf39aae6dd87e9be91 (diff)
downloadqemu-07be379fb1d4d919384001a6732e1fa81b2212a2.zip
qemu-07be379fb1d4d919384001a6732e1fa81b2212a2.tar.gz
qemu-07be379fb1d4d919384001a6732e1fa81b2212a2.tar.bz2
converted INTO/CMPXCHG8B to TCG
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4510 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-i386/helper.c')
-rw-r--r--target-i386/helper.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/target-i386/helper.c b/target-i386/helper.c
index 5322491..0891ec9 100644
--- a/target-i386/helper.c
+++ b/target-i386/helper.c
@@ -1849,6 +1849,15 @@ void helper_das(void)
FORCE_RET();
}
+void helper_into(int next_eip_addend)
+{
+ int eflags;
+ eflags = cc_table[CC_OP].compute_all();
+ if (eflags & CC_O) {
+ raise_interrupt(EXCP04_INTO, 1, 0, next_eip_addend);
+ }
+}
+
void helper_cmpxchg8b(target_ulong a0)
{
uint64_t d;