aboutsummaryrefslogtreecommitdiff
path: root/target-i386/helper.c
diff options
context:
space:
mode:
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 53224919f8..0891ec9dc1 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;