summaryrefslogtreecommitdiffstats
path: root/libpdbg/chip.c
diff options
context:
space:
mode:
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 539438a..0dd2363 100644
--- a/libpdbg/chip.c
+++ b/libpdbg/chip.c
@@ -158,7 +158,7 @@ static int ram_instructions(struct thread *thread, uint64_t *opcodes,
} else if (i == len + 1) {
/* Restore r1 */
scratch = r1;
- opcode = mfspr(0, 277);
+ opcode = mfspr(1, 277);
}
CHECK_ERR(thread->ram_instruction(thread, opcode, &scratch));
OpenPOWER on IntegriCloud