From 34418ed1c8ef8a958dd580e9835c417da91c807d Mon Sep 17 00:00:00 2001 From: Mark Zhuang Date: Tue, 27 Jun 2023 14:40:04 +0800 Subject: [PATCH] target/riscv: fix haltgroup_supported to info->haltgroup_supported Change-Id: Id1276aecd3097d90e035bf3808e0c472188ba474 Signed-off-by: Mark Zhuang --- src/target/riscv/riscv-013.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/target/riscv/riscv-013.c b/src/target/riscv/riscv-013.c index 5a7a07be7..10a4bb15c 100644 --- a/src/target/riscv/riscv-013.c +++ b/src/target/riscv/riscv-013.c @@ -1959,8 +1959,7 @@ static int examine(struct target *target) } if (target->smp) { - bool haltgroup_supported; - if (set_group(target, &haltgroup_supported, target->smp, HALT_GROUP) != ERROR_OK) + if (set_group(target, &info->haltgroup_supported, target->smp, HALT_GROUP) != ERROR_OK) return ERROR_FAIL; if (info->haltgroup_supported) LOG_INFO("Core %d made part of halt group %d.", target->coreid,