summaryrefslogtreecommitdiffstats
path: root/libpdbg/chip.c
diff options
context:
space:
mode:
authorAlistair Popple <alistair@popple.id.au>2018-05-24 17:01:18 +1000
committerAlistair Popple <alistair@popple.id.au>2018-05-24 17:01:18 +1000
commit13d78561d0a7c28e3892d2c4c56df867419503db (patch)
tree2100780ab7635a6fedccdbb452ca7a7f1c097926 /libpdbg/chip.c
parent070d7cd51ed14b5c9997524305004de0fbabb7da (diff)
downloadpdbg-13d78561d0a7c28e3892d2c4c56df867419503db.tar.gz
pdbg-13d78561d0a7c28e3892d2c4c56df867419503db.zip
libpdbg: Don't dump XER with ram_getspr
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@popple.id.au>
Diffstat (limited to 'libpdbg/chip.c')
-rw-r--r--libpdbg/chip.c3
1 files changed, 3 insertions, 0 deletions
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++) {
OpenPOWER on IntegriCloud