diff options
-rw-r--r-- | src/target/riscv/riscv-013.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/target/riscv/riscv-013.c b/src/target/riscv/riscv-013.c index a832494..1fff990 100644 --- a/src/target/riscv/riscv-013.c +++ b/src/target/riscv/riscv-013.c @@ -1194,7 +1194,7 @@ static int examine(struct target *target) r->impebreak = get_field(dmstatus, DMI_DMSTATUS_IMPEBREAK); for (int i = 0; i < RISCV_MAX_HARTS; ++i) { - if (!riscv_hart_enabled(target, i)) + if (!riscv_rtos_enabled(target) && i != target->coreid) continue; riscv_set_current_hartid(target, i); |