From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HjiE6-00038B-KU for qemu-devel@nongnu.org; Thu, 03 May 2007 16:48:34 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HjiE4-00032H-UT for qemu-devel@nongnu.org; Thu, 03 May 2007 16:48:33 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HjiE4-000324-EJ for qemu-devel@nongnu.org; Thu, 03 May 2007 16:48:32 -0400 Received: from moutng.kundenserver.de ([212.227.126.177]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Hji7V-0002om-42 for qemu-devel@nongnu.org; Thu, 03 May 2007 16:41:45 -0400 Message-ID: <463A4906.5060101@mail.berlios.de> Date: Thu, 03 May 2007 22:41:42 +0200 From: Stefan Weil MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH] qemu/hw mips_malta.c mips_pica61.c mips_r4k.c References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Reply-To: 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 This workaround fixes the problems with QEMU and Linux FPU emulation (at least in my tests): Index: target-mips/helper.c =================================================================== RCS file: /sources/qemu/qemu/target-mips/helper.c,v retrieving revision 1.34 diff -u -b -B -r1.34 helper.c --- target-mips/helper.c 13 Apr 2007 20:17:54 -0000 1.34 +++ target-mips/helper.c 3 May 2007 20:39:35 -0000 @@ -340,6 +340,7 @@ goto set_EPC; case EXCP_AdEL: cause = 4; + tb_flush(env); goto set_EPC; case EXCP_AdES: cause = 5; Of course, a better solution would be fixing self modifying code. Stefan Thiemo Seufer schrieb: > CVSROOT: /sources/qemu > Module name: qemu > Changes by: Thiemo Seufer 07/04/28 21:07:41 > > Modified files: > hw : mips_malta.c mips_pica61.c mips_r4k.c > > Log message: > Switch default CPU to 24Kf for now, as the Linux FPU emulation in > the current qemu mips emulation fails in some cases. (The Linux > FPU emulation works on real FPU-less hardware.) > > CVSWeb URLs: > http://cvs.savannah.gnu.org/viewcvs/qemu/hw/mips_malta.c?cvsroot=qemu&r1=1.25&r2=1.26 > http://cvs.savannah.gnu.org/viewcvs/qemu/hw/mips_pica61.c?cvsroot=qemu&r1=1.2&r2=1.3 > http://cvs.savannah.gnu.org/viewcvs/qemu/hw/mips_r4k.c?cvsroot=qemu&r1=1.42&r2=1.43