[Pdbg] [PATCH] regs: print correct PTCR register
Nicholas Piggin
npiggin at gmail.com
Fri Jul 20 23:06:00 AEST 2018
Signed-off-by: Nicholas Piggin <npiggin at gmail.com>
---
libpdbg/chip.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libpdbg/chip.c b/libpdbg/chip.c
index f04bb15..079592c 100644
--- a/libpdbg/chip.c
+++ b/libpdbg/chip.c
@@ -387,7 +387,7 @@ int ram_state_thread(struct pdbg_target *thread, struct thread_regs *regs)
printf("LPCR : 0x%016" PRIx64 "\n", regs->lpcr);
ram_getspr(thread, 464, ®s->ptcr);
- printf("PTCR : 0x%016" PRIx64 "\n", regs->lpcr);
+ printf("PTCR : 0x%016" PRIx64 "\n", regs->ptcr);
ram_getspr(thread, 319, ®s->lpidr);
printf("LPIDR : 0x%016" PRIx64 "\n", regs->lpidr);
--
2.17.0
More information about the Pdbg
mailing list