]> git.proxmox.com Git - qemu.git/commitdiff
fixed ins in case of page fault
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>
Sun, 19 Dec 2004 23:03:29 +0000 (23:03 +0000)
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>
Sun, 19 Dec 2004 23:03:29 +0000 (23:03 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1178 c046a42c-6fe2-441c-8c8c-71466251a162

target-i386/translate.c

index 1e9bea57265f7ac03685b9df2acf7a3b619a9db1..eba99052ae2a270fd915fe9851b983430cab1bc8 100644 (file)
@@ -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) {