[Pdbg] [PATCH] libpdbg: Don't dump XER with ram_getspr

Alistair Popple alistair at popple.id.au
Thu May 24 17:02:57 AEST 2018


Dumping XER checkstops P8 hosts. There is a special ramming op-code for XER
which needs to be used instead.

Signed-off-by: Alistair Popple <alistair at popple.id.au>
---
 libpdbg/chip.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/libpdbg/chip.c b/libpdbg/chip.c
index 0e890a6..912de0a 100644
--- a/libpdbg/chip.c
+++ b/libpdbg/chip.c
@@ -364,9 +364,12 @@ int ram_state_thread(struct pdbg_target *thread, struct thread_regs *regs)
 	}
 	printf("CR    : 0x%08" PRIx32 "\n", regs->cr);
 
+#if 0
+	/* TODO: Disabling because reading SPR 0x1 reliably checkstops a P8 */
 	ram_getspr(thread, 0x1, &value);
 	regs->xer = value;
 	printf("XER   : 0x%08" PRIx32 "\n", regs->xer);
+#endif
 
 	printf("GPRS  :\n");
 	for (i = 0; i < 32; i++) {
-- 
2.11.0



More information about the Pdbg mailing list