This commit is contained in:
Palmer Dabbelt 2018-05-30 02:25:30 -07:00
parent 47731c68d2
commit ec42c4300e
1 changed files with 1 additions and 1 deletions

View File

@ -1121,7 +1121,7 @@ int riscv_openocd_halt(struct target *target)
register_cache_invalidate(target->reg_cache);
if (riscv_rtos_enabled(target)) {
if (r->rtos_hartid == -1) {
if (r->rtos_hartid != -1) {
LOG_DEBUG("halt requested on RTOS hartid %d", r->rtos_hartid);
target->rtos->current_threadid = r->rtos_hartid + 1;
target->rtos->current_thread = r->rtos_hartid + 1;