target/riscv: Track whether halt groups are supported.

Will be used later when we want to do a quick halt/resume.

Change-Id: Ib80166234c4c277b7d9ce26b7566ac0f93017e64
Signed-off-by: Tim Newsome <tim@sifive.com>
This commit is contained in:
Tim Newsome 2023-06-05 10:28:41 -07:00
parent b496bebcda
commit 6e64b685f4
1 changed files with 4 additions and 1 deletions

View File

@ -205,6 +205,9 @@ typedef struct {
/* This target was selected using hasel. */
bool selected;
/* This hart was placed into a halt group in examine(). */
bool haltgroup_supported;
} riscv013_info_t;
static LIST_HEAD(dm_list);
@ -1890,7 +1893,7 @@ static int examine(struct target *target)
bool haltgroup_supported;
if (set_group(target, &haltgroup_supported, target->smp, HALT_GROUP) != ERROR_OK)
return ERROR_FAIL;
if (haltgroup_supported)
if (info->haltgroup_supported)
LOG_INFO("Core %d made part of halt group %d.", target->coreid,
target->smp);
else