aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTim Newsome <tim@sifive.com>2023-06-05 10:28:41 -0700
committerTim Newsome <tim@sifive.com>2023-06-20 09:22:31 -0700
commit6e64b685f49f8fdd54485cec323fdb6ed09090c0 (patch)
tree9fa15f0bdf7288ebcbe79b80369760a9f0708fef /src
parentb496bebcda5f79387c94f6dfb0d90db42f3412d8 (diff)
downloadriscv-openocd-6e64b685f49f8fdd54485cec323fdb6ed09090c0.zip
riscv-openocd-6e64b685f49f8fdd54485cec323fdb6ed09090c0.tar.gz
riscv-openocd-6e64b685f49f8fdd54485cec323fdb6ed09090c0.tar.bz2
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>
Diffstat (limited to 'src')
-rw-r--r--src/target/riscv/riscv-013.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/target/riscv/riscv-013.c b/src/target/riscv/riscv-013.c
index 9f218e4..b4f6799 100644
--- a/src/target/riscv/riscv-013.c
+++ b/src/target/riscv/riscv-013.c
@@ -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