@@ -116,10 +116,8 @@ static struct thread_state p9_get_thread_status(struct thread *thread)
static int p9_thread_probe(struct pdbg_target *target)
{
struct thread *thread = target_to_thread(target);
- uint32_t tid;
- assert(!pdbg_target_u32_property(target, "tid", &tid));
- thread->id = tid;
+ thread->id = pdbg_target_index(target);
thread->status = p9_get_thread_status(thread);
return 0;
@@ -288,10 +288,8 @@ static int sbefifo_pib_thread_sreset(struct pib *pib)
static int sbefifo_thread_probe(struct pdbg_target *target)
{
struct thread *thread = target_to_thread(target);
- uint32_t tid;
- assert(!pdbg_target_u32_property(target, "tid", &tid));
- thread->id = tid;
+ thread->id = pdbg_target_index(target);
return 0;
}
Signed-off-by: Amitay Isaacs <amitay@ozlabs.org> --- libpdbg/p9chip.c | 4 +--- libpdbg/sbefifo.c | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-)