summaryrefslogtreecommitdiffstats
path: root/libpdbg/chip.c
diff options
context:
space:
mode:
authorNicholas Piggin <npiggin@gmail.com>2018-07-20 23:06:00 +1000
committerAlistair Popple <alistair@popple.id.au>2018-08-02 15:33:51 +1000
commitc8c2b43e892e5e40c412339f8592f528fc0981d9 (patch)
tree055c0c6bb7f298e149d7c7f0cbf446311771cc73 /libpdbg/chip.c
parent4e966931a65439f189e1e8828f8a98fa420c16d6 (diff)
downloadpdbg-c8c2b43e892e5e40c412339f8592f528fc0981d9.tar.gz
pdbg-c8c2b43e892e5e40c412339f8592f528fc0981d9.zip
regs: print correct PTCR register
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Diffstat (limited to 'libpdbg/chip.c')
-rw-r--r--libpdbg/chip.c2
1 files changed, 1 insertions, 1 deletions
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, &regs->ptcr);
- printf("PTCR : 0x%016" PRIx64 "\n", regs->lpcr);
+ printf("PTCR : 0x%016" PRIx64 "\n", regs->ptcr);
ram_getspr(thread, 319, &regs->lpidr);
printf("LPIDR : 0x%016" PRIx64 "\n", regs->lpidr);
OpenPOWER on IntegriCloud