From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O3xeu-0004VU-R4 for qemu-devel@nongnu.org; Mon, 19 Apr 2010 16:33:32 -0400 Received: from [140.186.70.92] (port=53251 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O3xeo-0004Ur-Ty for qemu-devel@nongnu.org; Mon, 19 Apr 2010 16:33:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O3xek-0006cv-39 for qemu-devel@nongnu.org; Mon, 19 Apr 2010 16:33:26 -0400 Received: from mail-ww0-f45.google.com ([74.125.82.45]:62904) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O3xej-0006cl-RP for qemu-devel@nongnu.org; Mon, 19 Apr 2010 16:33:22 -0400 Received: by wwg30 with SMTP id 30so365949wwg.4 for ; Mon, 19 Apr 2010 13:33:20 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: From: Artyom Tarasenko Date: Mon, 19 Apr 2010 22:33:00 +0200 Message-ID: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] Re: singlestep and sparc32 List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Blue Swirl Cc: qemu-devel 2010/4/19 Blue Swirl : > On 4/19/10, Artyom Tarasenko wrote: >> is -single-step option supposed to work under qemu-system-sparc? Or is >> =A0it only for non-pipelined CPUs? > > I've never used it. is there another way to reduce a translation block? -icount 1 doesn't make a difference. >> =A0I get pretty strange results: some addresses seem to be executed >> =A0twice, and then qemu hangs on the last nop: > > One possibility is that we don't generate any code at all for nops > (sethi x, %g0). If you delete the "if (rd)" check in translate.c:1784, > does it help? Seems to make no difference at all. >> =A0-------------- >> =A0IN: >> =A00x00000000: =A0b =A00xb788 >> =A0-------------- >> =A0IN: >> =A00x00000004: =A0rd =A0%psr, %l0 >> =A0-------------- >> =A0IN: >> =A00x00000004: =A0rd =A0%psr, %l0 >> =A0-------------- >> =A0IN: >> =A00x00000008: =A0nop >> =A0-------------- >> =A0IN: >> =A00x00000008: =A0nop >> =A0-------------- >> =A0IN: >> =A00x0000000c: =A0nop >> =A0-------------- >> =A0IN: >> =A00x0000000c: =A0nop >> >> =A0... skipped ... >> >> =A0IN: >> =A00x7000a58c: =A0bg =A00x7000a588 >> =A0-------------- >> =A0IN: >> =A00x7000a590: =A0nop >> =A0-------------- >> =A0IN: >> =A00x7000a590: =A0nop >> =A0-------------- >> =A0IN: >> =A00x7000a594: =A0b =A00x7000a570 >> =A0-------------- >> =A0IN: >> =A00x7000a594: =A0b =A00x7000a570 >> =A0-------------- >> =A0IN: >> =A00x7000a578: =A0be =A00x7000a59c >> =A0-------------- >> =A0IN: >> =A00x7000a580: =A0stba =A0%l1, [ %l0 ] #ASI_M_BYPASS >> =A0-------------- >> =A0IN: >> =A00x7000a588: =A0deccc =A0%l2 >> =A0-------------- >> =A0IN: >> =A00x7000a594: =A0b =A00x7000a570 >> =A0-------------- >> =A0IN: >> =A00x7000a590: =A0nop >> >> =A0^^^^^^^^^^^ That's the end >> >> =A0Without -singlestep it seems to work better: >> >> >> =A00x7000a588: =A0deccc =A0%l2 >> =A00x7000a58c: =A0bg =A00x7000a588 >> =A00x7000a590: =A0nop >> >> =A0-------------- >> =A0IN: >> =A00x7000a594: =A0b =A00x7000a570 >> =A00x7000a598: =A0inc =A0%l4 >> >> =A0-------------- >> =A0IN: >> =A00x7000a570: =A0lduba =A0[ %l4 ] #ASI_M_KERNELTXT, %l1 >> =A00x7000a574: =A0cmp =A0%l1, 0xff >> =A00x7000a578: =A0be =A00x7000a59c >> =A0... and so on ... --=20 Regards, Artyom Tarasenko solaris/sparc under qemu blog: http://tyom.blogspot.com/