[Pdbg] [PATCH] libpdbg/p9chip.c: Use the standard function for iterating targets

Alistair Popple alistair at popple.id.au
Mon Aug 13 15:00:46 AEST 2018


Signed-off-by: Alistair Popple <alistair at popple.id.au>
---
 libpdbg/p9chip.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libpdbg/p9chip.c b/libpdbg/p9chip.c
index b347cc1..2585f11 100644
--- a/libpdbg/p9chip.c
+++ b/libpdbg/p9chip.c
@@ -223,7 +223,7 @@ static int p9_ram_setup(struct thread *thread)
 
 	/* We can only ram a thread if all the threads on the core/chip are
 	 * quiesced */
-	dt_for_each_compatible(&chip->target, target, "ibm,power9-thread") {
+	pdbg_for_each_target("thread", &chip->target, target) {
 		struct thread *tmp;
 
 		/* If this thread wasn't enabled it may not yet have been probed
-- 
2.11.0



More information about the Pdbg mailing list