Skip to contentSkip to conversation

ppc: Add CFAR, DAR and DSISR to the dictionary of printable registers

PATCH Applied Anton Blanchard 2 participants 2 messages Sep 25, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ppc: Add CFAR, DAR and DSISR to the dictionary of printable registers

From: Tom Musta <[email protected]>

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

---

monitor.c +3 -0
Index: 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]) },
#1 lore raw
Quoted 7 lines · Anton Blanchard

From: Tom Musta <[email protected]>

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:

Quoted 6 lines

(qemu) print $cfar
(qemu) print $dar
(qemu) print $dsisr

Thanks, applied to ppc-next.

Alex