aboutsummaryrefslogtreecommitdiff
path: root/exec-i386.c
diff options
context:
space:
mode:
Diffstat (limited to 'exec-i386.c')
-rw-r--r--exec-i386.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/exec-i386.c b/exec-i386.c
index 10a10d7..5b90305 100644
--- a/exec-i386.c
+++ b/exec-i386.c
@@ -371,6 +371,7 @@ int cpu_x86_exec(CPUX86State *env1)
flags |= (3 << GEN_FLAG_CPL_SHIFT);
}
flags |= (env->eflags & IOPL_MASK) >> (12 - GEN_FLAG_IOPL_SHIFT);
+ flags |= (env->eflags & TF_MASK) << (GEN_FLAG_TF_SHIFT - 8);
cs_base = env->seg_cache[R_CS].base;
pc = cs_base + env->eip;
tb = tb_find(&ptb, (unsigned long)pc, (unsigned long)cs_base,