aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-12-19 23:03:29 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-12-19 23:03:29 +0000
commit9772c73bbc9f24a66bf060e16c0625a258b1bb41 (patch)
tree29ea3466c4f90d184f4e1999576f28b06537a072
parentde06c511ff3dc672f5f4e7884683893a92712c99 (diff)
downloadqemu-9772c73bbc9f24a66bf060e16c0625a258b1bb41.zip
qemu-9772c73bbc9f24a66bf060e16c0625a258b1bb41.tar.gz
qemu-9772c73bbc9f24a66bf060e16c0625a258b1bb41.tar.bz2
fixed ins in case of page fault
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1178 c046a42c-6fe2-441c-8c8c-71466251a162
-rw-r--r--target-i386/translate.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/target-i386/translate.c b/target-i386/translate.c
index 1e9bea5..eba9905 100644
--- a/target-i386/translate.c
+++ b/target-i386/translate.c
@@ -874,8 +874,10 @@ static inline void gen_cmps(DisasContext *s, int ot)
static inline void gen_ins(DisasContext *s, int ot)
{
- gen_op_in_DX_T0[ot]();
gen_string_movl_A0_EDI(s);
+ gen_op_movl_T0_0();
+ gen_op_st_T0_A0[ot + s->mem_index]();
+ gen_op_in_DX_T0[ot]();
gen_op_st_T0_A0[ot + s->mem_index]();
gen_op_movl_T0_Dshift[ot]();
if (s->aflag) {