We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ccdd26e commit 1051835Copy full SHA for 1051835
src/target/riscv/riscv.c
@@ -1012,6 +1012,9 @@ bool riscv_rtos_enabled(const struct target *target)
1012
void riscv_set_current_hartid(struct target *target, int hartid)
1013
{
1014
RISCV_INFO(r);
1015
+ if (!r->select_current_hart)
1016
+ return;
1017
+
1018
int previous_hartid = riscv_current_hartid(target);
1019
r->current_hartid = hartid;
1020
assert(riscv_rtos_enabled(target) || target->coreid == hartid);
0 commit comments