Skip to contentSkip to conversation

page fault during ins

Qemu-devel Juergen Keil 2 participants 2 messages Dec 15, 2004

lore
Share & tools
lore
#0 lore raw
Quoted 9 lines

Maybe someone who experiences the problem could check the attached patch? The patch is not really correct, but chances are it could help.

diff -ru qemu-0.6.1/target-i386/translate.c
qemu-0.6.1-A-prepare/target-i386/translate.c

target-i386/translate.c +0 -0
@@ -874,8 +874,10 @@
 

target-i386/translate.c line 883

Quoted 10 lines
target-i386/translate.c +3 -1
 static inline void gen_ins(DisasContext *s, int ot)
 {
-    gen_op_in_DX_T0[ot]();
     gen_string_movl_A0_EDI(s);
+    /* XXX: this is not correct, find another solution to avoid side-effect on restart (mmu fault) */
+    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) {

I seems this patch doesn't help. I just tried a W2K install on a 1G qemu qcow HDD (host OS: Solaris x86), and got the "disk full" problem.

#1 lore raw

Leo Whitman confirmed your results.

No luck this time;-(

Regards,

Piotrek

Quoted 22 lines · Juergen Keil
Quoted 9 lines

Maybe someone who experiences the problem could check the attached patch? The patch is not really correct, but chances are it could help.

diff -ru qemu-0.6.1/target-i386/translate.c
qemu-0.6.1-A-prepare/target-i386/translate.c

target-i386/translate.c 2004-12-14 17:32:29.000000000 +0100 renamed from target-i386/translate.c 2004-11-14 21:51:33.000000000 +0100 +0 -0
@@ -874,8 +874,10 @@
 

target-i386/translate.c 2004-12-14 17:32:29.000000000 +0100 line 883

Quoted 10 lines
target-i386/translate.c 2004-12-14 17:32:29.000000000 +0100 renamed from target-i386/translate.c 2004-11-14 21:51:33.000000000 +0100 +3 -1
 static inline void gen_ins(DisasContext *s, int ot)
 {
-    gen_op_in_DX_T0[ot]();
     gen_string_movl_A0_EDI(s);
+    /* XXX: this is not correct, find another solution to avoid side-effect on restart (mmu fault) */
+    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) {

I seems this patch doesn't help. I just tried a W2K install on a 1G qemu qcow HDD (host OS: Solaris x86), and got the "disk full" problem.