diff options
author | Dmitry Ryzhov <dmitry.ryzhov@cloudbear.ru> | 2018-08-24 02:52:12 +0300 |
---|---|---|
committer | Tim Newsome <tim@sifive.com> | 2018-08-23 16:52:12 -0700 |
commit | f54eaf0b8e5b563e6906c00734d79770a5ed705f (patch) | |
tree | f8a3ad115f99ea59c1a96d31615544b362cca7fd /src | |
parent | b5908024321b761a45986f08e9f2577645db90af (diff) | |
download | riscv-openocd-f54eaf0b8e5b563e6906c00734d79770a5ed705f.zip riscv-openocd-f54eaf0b8e5b563e6906c00734d79770a5ed705f.tar.gz riscv-openocd-f54eaf0b8e5b563e6906c00734d79770a5ed705f.tar.bz2 |
Switch active rtos thread on any hart halt. (#290)
Diffstat (limited to 'src')
-rw-r--r-- | src/target/riscv/riscv.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/target/riscv/riscv.c b/src/target/riscv/riscv.c index 8d76c4a..24d633d 100644 --- a/src/target/riscv/riscv.c +++ b/src/target/riscv/riscv.c @@ -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; |