* [Qemu-devel] [PATCH] ppc: Add CFAR, DAR and DSISR to the dictionary of printable registers
@ 2013-09-25 7:41 Anton Blanchard
2013-09-25 12:38 ` Alexander Graf
0 siblings, 1 reply; 2+ messages in thread
From: Anton Blanchard @ 2013-09-25 7:41 UTC (permalink / raw)
To: agraf; +Cc: tommusta, qemu-ppc, qemu-devel
From: Tom Musta <tommusta@gmail.com>
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 <tommusta@gmail.com>
Reviewed-by: Anton Blanchard <anton@samba.org>
---
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]) },
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Qemu-devel] [PATCH] ppc: Add CFAR, DAR and DSISR to the dictionary of printable registers
2013-09-25 7:41 [Qemu-devel] [PATCH] ppc: Add CFAR, DAR and DSISR to the dictionary of printable registers Anton Blanchard
@ 2013-09-25 12:38 ` Alexander Graf
0 siblings, 0 replies; 2+ messages in thread
From: Alexander Graf @ 2013-09-25 12:38 UTC (permalink / raw)
To: Anton Blanchard; +Cc: tommusta, qemu-ppc, qemu-devel
On 25.09.2013, at 09:41, Anton Blanchard wrote:
> From: Tom Musta <tommusta@gmail.com>
>
> 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 <tommusta@gmail.com>
> Reviewed-by: Anton Blanchard <anton@samba.org>
Thanks, applied to ppc-next.
Alex
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-09-25 12:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-09-25 7:41 [Qemu-devel] [PATCH] ppc: Add CFAR, DAR and DSISR to the dictionary of printable registers Anton Blanchard
2013-09-25 12:38 ` Alexander Graf
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.