From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hkn4b-0005Bq-NO for qemu-devel@nongnu.org; Sun, 06 May 2007 16:11:13 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hkn4a-00059c-2b for qemu-devel@nongnu.org; Sun, 06 May 2007 16:11:13 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hkn4Z-00059M-VK for qemu-devel@nongnu.org; Sun, 06 May 2007 16:11:11 -0400 Received: from phoenix.bawue.net ([193.7.176.60] helo=mail.bawue.net) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Hkmxg-0003KI-1O for qemu-devel@nongnu.org; Sun, 06 May 2007 16:04:04 -0400 Date: Sun, 6 May 2007 21:04:52 +0100 Subject: Re: [Qemu-devel] bug: qemu-0.9.0 emulating mipsel (32-bit R3000) on amd64 Message-ID: <20070506200452.GA32686@networkno.de> References: <463E2234.3040508@BitWagon.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <463E2234.3040508@BitWagon.com> From: Thiemo Seufer Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: John Reiser Cc: qemu-devel@nongnu.org John Reiser wrote: > Hi, > > qemu-0.9.0 compiled and running on Debian 2.6.18-4-amd64, > [compiled by gcc (GCC) 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)], > emulating Debian 2.6.18-4-qemu mipsel (32-bit MIPS R3000 little endian), > errs when gdb 6.4.90-debian (running on the emulated mipsel) > single-steps the user-mode instruction: > lw a2,-44(s7) > After single-stepping the 'lw', then register a2 contains garbage > instead of the memory contents at address -44(s7). 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 Thiemo