target/riscv: fix haltgroup_supported to info->haltgroup_supported

Change-Id: Id1276aecd3097d90e035bf3808e0c472188ba474
Signed-off-by: Mark Zhuang <mark.zhuang@spacemit.com>
This commit is contained in:
Mark Zhuang 2023-06-27 14:40:04 +08:00
parent a45589d60a
commit 34418ed1c8
1 changed files with 1 additions and 2 deletions

View File

@ -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,