summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicholas Piggin <npiggin@gmail.com>2019-03-08 12:25:34 +1000
committerAlistair Popple <alistair@popple.id.au>2019-03-08 15:28:21 +1100
commitdb358eb46363b50cd83035c6f501af2ac37cc9ac (patch)
tree7a15d77e055e378d2d79ea29995e199e7d6ef6de
parentec77332342d7de7ead5307030b4065d906b18556 (diff)
downloadpdbg-db358eb46363b50cd83035c6f501af2ac37cc9ac.tar.gz
pdbg-db358eb46363b50cd83035c6f501af2ac37cc9ac.zip
libpdbg/p8chip.c: read status from correct target
-rw-r--r--libpdbg/p8chip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpdbg/p8chip.c b/libpdbg/p8chip.c
index 914c335..61b1e25 100644
--- a/libpdbg/p8chip.c
+++ b/libpdbg/p8chip.c
@@ -291,7 +291,7 @@ static int p8_thread_stop(struct thread *thread)
CHECK_ERR(pib_write(&thread->target, DIRECT_CONTROLS_REG, DIRECT_CONTROL_SP_STOP));
/* Wait for thread to quiese */
- CHECK_ERR(pib_read(&chip->target, RAS_STATUS_REG, &val));
+ CHECK_ERR(pib_read(&thread->target, RAS_STATUS_REG, &val));
if (i++ > RAS_STATUS_TIMEOUT) {
PR_ERROR("Unable to quiesce thread %d (0x%016" PRIx64 ").\n",
thread->id, val);
OpenPOWER on IntegriCloud