From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CeUbE-00044l-Vc for qemu-devel@nongnu.org; Wed, 15 Dec 2004 03:33:33 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CeUbD-00041f-DI for qemu-devel@nongnu.org; Wed, 15 Dec 2004 03:33:31 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CeUbD-000410-35 for qemu-devel@nongnu.org; Wed, 15 Dec 2004 03:33:31 -0500 Received: from [64.233.184.194] (helo=wproxy.gmail.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CeUQt-0001Yf-Im for qemu-devel@nongnu.org; Wed, 15 Dec 2004 03:22:51 -0500 Received: by wproxy.gmail.com with SMTP id 68so34629wri for ; Wed, 15 Dec 2004 00:22:51 -0800 (PST) Message-ID: Date: Wed, 15 Dec 2004 09:22:50 +0100 From: Piotras Subject: Re: [Qemu-devel] page fault during ins In-Reply-To: <41BF5DBF.2050101@bellard.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_416_17493807.1103098970861" References: <41BF5DBF.2050101@bellard.org> Reply-To: Piotras , qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org ------=_Part_416_17493807.1103098970861 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi! Maybe someone who experiences the problem could check the attached patch? The patch is not really correct, but chances are it could help. Regards, Piotrek On Tue, 14 Dec 2004 22:40:15 +0100, Fabrice Bellard wrote: > Very interesting remark. If it explains a bug in one OS (for example the > win 2000 disk full issue !), then it will become high priority. ------=_Part_416_17493807.1103098970861 Content-Type: text/x-patch; name="wnt.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="wnt.patch" diff -ru qemu-0.6.1/target-i386/translate.c qemu-0.6.1-A-prepare/target-i38= 6/translate.c --- qemu-0.6.1/target-i386/translate.c=092004-11-14 21:51:33.000000000 +010= 0 +++ qemu-0.6.1-A-prepare/target-i386/translate.c=092004-12-14 17:32:29.0000= 00000 +0100 @@ -874,8 +874,10 @@ =20 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-effec= t 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) { ------=_Part_416_17493807.1103098970861--