summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRashmica Gupta <rashmica.g@gmail.com>2018-10-05 13:46:45 +1000
committerAlistair Popple <alistair@popple.id.au>2018-10-15 15:44:50 +1100
commit745ea68d9ee06e4fd3ca594636837ba561132c0c (patch)
tree1ee08f99f640ac58892290e7c9d10b00f741111c
parentc8897483333503ce328d59ebdc7c3662b0aaf15b (diff)
downloadpdbg-745ea68d9ee06e4fd3ca594636837ba561132c0c.tar.gz
pdbg-745ea68d9ee06e4fd3ca594636837ba561132c0c.zip
libpdbg/chip: add HEIR and HID register to ram_state_thread
Signed-off-by: Rashmica Gupta <rashmica.g@gmail.com> Reviewed-by: Alistair Popple <alistair@popple.id.au>
-rw-r--r--libpdbg/chip.c7
-rw-r--r--libpdbg/libpdbg.h2
2 files changed, 9 insertions, 0 deletions
diff --git a/libpdbg/chip.c b/libpdbg/chip.c
index 93eb3f0..5b67c7b 100644
--- a/libpdbg/chip.c
+++ b/libpdbg/chip.c
@@ -471,6 +471,13 @@ int ram_state_thread(struct pdbg_target *thread, struct thread_regs *regs)
ram_getspr(thread, 307, &regs->hdar);
printf("HDAR : 0x%016" PRIx64 "\n", regs->hdar);
+ ram_getspr(thread, 339, &value);
+ regs->heir = value;
+ printf("HEIR : 0x%016" PRIx32 "\n", regs->heir);
+
+ ram_getspr(thread, 1008, &regs->hid);
+ printf("HID0 : 0x%016" PRIx64 "\n", regs->hid);
+
ram_getspr(thread, 314, &regs->hsrr0);
printf("HSRR0 : 0x%016" PRIx64 "\n", regs->hsrr0);
diff --git a/libpdbg/libpdbg.h b/libpdbg/libpdbg.h
index 8bf7042..c54e852 100644
--- a/libpdbg/libpdbg.h
+++ b/libpdbg/libpdbg.h
@@ -120,6 +120,8 @@ struct thread_regs {
uint64_t hsrr0;
uint64_t hsrr1;
uint64_t hdec;
+ uint32_t heir;
+ uint64_t hid;
uint64_t hsprg0;
uint64_t hsprg1;
uint64_t fscr;
OpenPOWER on IntegriCloud