[Pdbg] [PATCH 2/7] libpdbg/p8chip.c: read status from correct target

Nicholas Piggin npiggin at gmail.com
Fri Mar 8 13:25:34 AEDT 2019


---
 libpdbg/p8chip.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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);
-- 
2.20.1



More information about the Pdbg mailing list