From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hl5XX-0005Ns-AL for qemu-devel@nongnu.org; Mon, 07 May 2007 11:54:19 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hl5XU-0005Ng-GU for qemu-devel@nongnu.org; Mon, 07 May 2007 11:54:18 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hl5XU-0005Nd-CA for qemu-devel@nongnu.org; Mon, 07 May 2007 11:54:16 -0400 Received: from mail.codesourcery.com ([65.74.133.4]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Hl5QU-00047B-Kz for qemu-devel@nongnu.org; Mon, 07 May 2007 11:47:02 -0400 From: Paul Brook Subject: Re: [Qemu-devel] bug: qemu-0.9.0 emulating mipsel (32-bit R3000) on amd64 Date: Mon, 7 May 2007 16:46:52 +0100 References: <463E2234.3040508@BitWagon.com> <20070506200452.GA32686@networkno.de> <20070507121310.GA18535@caradoc.them.org> In-Reply-To: <20070507121310.GA18535@caradoc.them.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200705071646.54894.paul@codesourcery.com> 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 Cc: John Reiser On Monday 07 May 2007, Daniel Jacobowitz wrote: > On Sun, May 06, 2007 at 09:04:52PM +0100, Thiemo Seufer wrote: > > This looks like another instance of "Qemu/MIPS doesn't handle > > self-modifying code correctly" (the break instructions inserted > > by gdb are exactly this). > > > > A gross workaround is > > http://lists.nongnu.org/archive/html/qemu-devel/2007-05/msg00037.html > > Someone might want to try: > http://lists.nongnu.org/archive/html/qemu-devel/2007-04/msg00514.html I think breakpoints and FPU are separate bugs. I notice that the FPU enable bit (CP0C1_FP) is not included in the TB flags. My guess is you need to modify exec.c:tb_find_fast to include this. Paul