From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HlC4n-00052f-6m for qemu-devel@nongnu.org; Mon, 07 May 2007 18:53:05 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HlC4l-00052J-MP for qemu-devel@nongnu.org; Mon, 07 May 2007 18:53:04 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HlC4l-00052G-J8 for qemu-devel@nongnu.org; Mon, 07 May 2007 18:53:03 -0400 Received: from jade.aracnet.com ([216.99.193.136]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HlBxj-0004pa-Q9 for qemu-devel@nongnu.org; Mon, 07 May 2007 18:45:48 -0400 Received: from [10.10.90.16] (kaiju.doongo.com [63.121.66.97]) (authenticated bits=0) by jade.aracnet.com (8.13.6/8.12.8) with ESMTP id l47MjhlB010521 for ; Mon, 7 May 2007 15:45:44 -0700 Message-ID: <463FAC29.306@BitWagon.com> Date: Mon, 07 May 2007 15:46:01 -0700 From: John Reiser MIME-Version: 1.0 Subject: Re: [Qemu-devel] workaround: qemu-0.9.0 emulating mipsel (32-bit R3000) on amd64 References: <463E2234.3040508@BitWagon.com> <20070506200452.GA32686@networkno.de> <20070507121310.GA18535@caradoc.them.org> In-Reply-To: <20070507121310.GA18535@caradoc.them.org> Content-Type: text/plain; charset=us-ascii 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 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 > This works for me so far: I can single-step reliably in gdb. --- a/qemu-0.9.0/target-mips/helper.c 2007-05-05 15:39:21.000000000 -0700 +++ b/qemu-0.9.0/target-mips/helper.c 2007-05-07 13:24:50.000000000 -0700 @@ -358,6 +358,7 @@ goto set_EPC; case EXCP_BREAK: cause = 9; + tlb_flush_page(env, env->PC); goto set_EPC; case EXCP_RI: cause = 10; -- John Reiser, jreiser@BitWagon.com