Received: from eggs.gnu.org ([2001:4830:134:3::10]:54514) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VOjir-0007cI-2w for qemu-devel@nongnu.org; Wed, 25 Sep 2013 03:41:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VOjil-0000sd-Ew for qemu-devel@nongnu.org; Wed, 25 Sep 2013 03:41:20 -0400 Received: from ozlabs.org ([2402:b800:7003:1:1::1]:34984) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VOjil-0000s2-2t for qemu-devel@nongnu.org; Wed, 25 Sep 2013 03:41:15 -0400 Date: Wed, 25 Sep 2013 17:41:13 +1000 From: Anton Blanchard Message-ID: <20130925174113.07a78679@kryten> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [PATCH] ppc: Add CFAR, DAR and DSISR to the dictionary of printable registers List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: agraf@suse.de Cc: tommusta@gmail.com, qemu-ppc@nongnu.org, qemu-devel@nongnu.org From: Tom Musta The CFAR, DAR and DSISR registers are currently missing from the dictionary of registers that may be printed in the QEMU console. These are interesting registers when debugging. With this patch, the following commands work properly: (qemu) print $cfar (qemu) print $dar (qemu) print $dsisr Signed-off-by: Tom Musta Reviewed-by: Anton Blanchard --- Index: b/monitor.c =================================================================== --- a/monitor.c +++ b/monitor.c @@ -3186,6 +3186,9 @@ static const MonitorDef monitor_defs[] = { "srr0", offsetof(CPUPPCState, spr[SPR_SRR0]) }, { "srr1", offsetof(CPUPPCState, spr[SPR_SRR1]) }, + { "dar", offsetof(CPUPPCState, spr[SPR_DAR]) }, + { "dsisr", offsetof(CPUPPCState, spr[SPR_DSISR]) }, + { "cfar", offsetof(CPUPPCState, spr[SPR_CFAR]) }, { "sprg0", offsetof(CPUPPCState, spr[SPR_SPRG0]) }, { "sprg1", offsetof(CPUPPCState, spr[SPR_SPRG1]) }, { "sprg2", offsetof(CPUPPCState, spr[SPR_SPRG2]) },