@@ -471,6 +471,13 @@ int ram_state_thread(struct pdbg_target *thread, struct thread_regs *regs)
ram_getspr(thread, 307, ®s->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, ®s->hid);
+ printf("HID0 : 0x%016" PRIx64 "\n", regs->hid);
+
ram_getspr(thread, 314, ®s->hsrr0);
printf("HSRR0 : 0x%016" PRIx64 "\n", regs->hsrr0);
@@ -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;
Signed-off-by: Rashmica Gupta <rashmica.g@gmail.com> --- libpdbg/chip.c | 7 +++++++ libpdbg/libpdbg.h | 2 ++ 2 files changed, 9 insertions(+)