aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPalmer Dabbelt <palmer@dabbelt.com>2018-05-30 02:25:30 -0700
committerPalmer Dabbelt <palmer@dabbelt.com>2018-05-30 02:25:30 -0700
commitec42c4300e41b0bbd1f49cc93aaaf2559b9a1faa (patch)
treefaf1570bd8d19c4dbebeffb33cc0ddc965baaab9
parent47731c68d22fe67a9ed5581b50ea1af2c2e7f971 (diff)
downloadriscv-openocd-ec42c4300e41b0bbd1f49cc93aaaf2559b9a1faa.zip
riscv-openocd-ec42c4300e41b0bbd1f49cc93aaaf2559b9a1faa.tar.gz
riscv-openocd-ec42c4300e41b0bbd1f49cc93aaaf2559b9a1faa.tar.bz2
Whoops
-rw-r--r--src/target/riscv/riscv.c2
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;