Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O3tWN-0007eW-3v for qemu-devel@nongnu.org; Mon, 19 Apr 2010 12:08:27 -0400 Received: from [140.186.70.92] (port=54713 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O3tWL-0007cj-1E for qemu-devel@nongnu.org; Mon, 19 Apr 2010 12:08:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O3tWJ-0001ze-5w for qemu-devel@nongnu.org; Mon, 19 Apr 2010 12:08:24 -0400 Received: from fe02x03-cgp.akado.ru ([77.232.31.165]:58343 helo=akado.ru) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O3tWD-0001yK-KC for qemu-devel@nongnu.org; Mon, 19 Apr 2010 12:08:22 -0400 Date: Mon, 19 Apr 2010 20:07:59 +0400 (MSD) From: malc Subject: Re: [Qemu-devel] singlestep and sparc32 In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Artyom Tarasenko Cc: Blue Swirl , qemu-devel On Mon, 19 Apr 2010, Artyom Tarasenko wrote: > is -single-step option supposed to work under qemu-system-sparc? Or is > it only for non-pipelined CPUs? Eh? Perhaps you meant that it's only for CPUs without delay slots? > > I get pretty strange results: some addresses seem to be executed > twice, and then qemu hangs on the last nop: > > -------------- > IN: > 0x00000000: b 0xb788 > -------------- > IN: > 0x00000004: rd %psr, %l0 > -------------- > IN: > 0x00000004: rd %psr, %l0 > -------------- > IN: > 0x00000008: nop > -------------- > IN: > 0x00000008: nop > -------------- > IN: > 0x0000000c: nop > -------------- > IN: > 0x0000000c: nop > > ... skipped ... > > IN: > 0x7000a58c: bg 0x7000a588 > -------------- > IN: > 0x7000a590: nop > -------------- > IN: > 0x7000a590: nop > -------------- > IN: > 0x7000a594: b 0x7000a570 > -------------- > IN: > 0x7000a594: b 0x7000a570 > -------------- > IN: > 0x7000a578: be 0x7000a59c > -------------- > IN: > 0x7000a580: stba %l1, [ %l0 ] #ASI_M_BYPASS > -------------- > IN: > 0x7000a588: deccc %l2 > -------------- > IN: > 0x7000a594: b 0x7000a570 > -------------- > IN: > 0x7000a590: nop > > ^^^^^^^^^^^ That's the end > > Without -singlestep it seems to work better: > > > 0x7000a588: deccc %l2 > 0x7000a58c: bg 0x7000a588 > 0x7000a590: nop > > -------------- > IN: > 0x7000a594: b 0x7000a570 > 0x7000a598: inc %l4 > > -------------- > IN: > 0x7000a570: lduba [ %l4 ] #ASI_M_KERNELTXT, %l1 > 0x7000a574: cmp %l1, 0xff > 0x7000a578: be 0x7000a59c > ... and so on ... > > > -- mailto:av1474@comtv.ru