qemu-ppc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-ppc] [PATCH] ppc: Add CFAR, DAR and DSISR to the dictionary of pri


From: Tom Musta
Subject: [Qemu-ppc] [PATCH] ppc: Add CFAR, DAR and DSISR to the dictionary of printable registers.
Date: Mon, 16 Sep 2013 07:09:57 -0500
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130801 Thunderbird/17.0.8

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 <address@hidden>
---
 monitor.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/monitor.c b/monitor.c
index 74f3f1b..b02b21c 100644
--- 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]) },



reply via email to

[Prev in Thread] Current Thread [Next in Thread]