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