aboutsummaryrefslogtreecommitdiff
path: root/target-i386/translate.c
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2005-01-04 01:06:58 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2005-01-04 01:06:58 +0000
commit06c2f5066e298d456e4a6ca24def8a84cc9ed31a (patch)
tree387e2d20ee2fa0f19a72f5dec384acaa49e6d252 /target-i386/translate.c
parentbdfaf503dc395cf77d6b67df5229c5c7a3cb7631 (diff)
syscall insn fix
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1199 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-i386/translate.c')
-rw-r--r--target-i386/translate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target-i386/translate.c b/target-i386/translate.c
index a00ce0426f..743aff7653 100644
--- a/target-i386/translate.c
+++ b/target-i386/translate.c
@@ -4626,7 +4626,7 @@ static target_ulong disas_insn(DisasContext *s, target_ulong pc_start)
s->cc_op = CC_OP_DYNAMIC;
}
gen_jmp_im(pc_start - s->cs_base);
- gen_op_syscall();
+ gen_op_syscall(s->pc - pc_start);
gen_eob(s);
break;
case 0x107: /* sysret */