Switch active rtos thread on any hart halt. (#290)

riscv-compliance
Dmitry Ryzhov 2018-08-24 02:52:12 +03:00 committed by Tim Newsome
parent b590802432
commit f54eaf0b8e
1 changed files with 1 additions and 0 deletions

View File

@ -1067,6 +1067,7 @@ int riscv_openocd_poll(struct target *target)
if (riscv_rtos_enabled(target)) {
target->rtos->current_threadid = halted_hart + 1;
target->rtos->current_thread = halted_hart + 1;
riscv_set_rtos_hartid(target, halted_hart);
}
target->state = TARGET_HALTED;