aboutsummaryrefslogtreecommitdiff
path: root/exec-i386.c
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2003-05-10 15:07:00 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2003-05-10 15:07:00 +0000
commitcabb4d616d47300a65062eb07142738b1cd35563 (patch)
tree1b30b521faad78b3d48c9654b6a0d521b9029c99 /exec-i386.c
parent631271d7164f8209c044988b6a02e1153391c4f9 (diff)
downloadqemu-cabb4d616d47300a65062eb07142738b1cd35563.zip
qemu-cabb4d616d47300a65062eb07142738b1cd35563.tar.gz
qemu-cabb4d616d47300a65062eb07142738b1cd35563.tar.bz2
TF flag support
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@144 c046a42c-6fe2-441c-8c8c-71466251a162
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,