diff options
author | Palmer Dabbelt <palmer@dabbelt.com> | 2018-05-30 02:25:30 -0700 |
---|---|---|
committer | Palmer Dabbelt <palmer@dabbelt.com> | 2018-05-30 02:25:30 -0700 |
commit | ec42c4300e41b0bbd1f49cc93aaaf2559b9a1faa (patch) | |
tree | faf1570bd8d19c4dbebeffb33cc0ddc965baaab9 | |
parent | 47731c68d22fe67a9ed5581b50ea1af2c2e7f971 (diff) | |
download | riscv-openocd-ec42c4300e41b0bbd1f49cc93aaaf2559b9a1faa.zip riscv-openocd-ec42c4300e41b0bbd1f49cc93aaaf2559b9a1faa.tar.gz riscv-openocd-ec42c4300e41b0bbd1f49cc93aaaf2559b9a1faa.tar.bz2 |
Whoops
-rw-r--r-- | src/target/riscv/riscv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/target/riscv/riscv.c b/src/target/riscv/riscv.c index 0de8f5c..74f1c7e 100644 --- a/src/target/riscv/riscv.c +++ b/src/target/riscv/riscv.c @@ -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; |