diff options
author | Palmer Dabbelt <palmer@dabbelt.com> | 2018-05-30 01:29:15 -0700 |
---|---|---|
committer | Palmer Dabbelt <palmer@dabbelt.com> | 2018-05-30 01:29:15 -0700 |
commit | fccc20ad7abfc5ac2dc50334c013e9679a245a03 (patch) | |
tree | f63aa60f45626ed4de34449431c9950b7758a29d | |
parent | 3c00bd8ff25c0677f7fa50364c7f395caf3c117e (diff) | |
download | riscv-openocd-fccc20ad7abfc5ac2dc50334c013e9679a245a03.zip riscv-openocd-fccc20ad7abfc5ac2dc50334c013e9679a245a03.tar.gz riscv-openocd-fccc20ad7abfc5ac2dc50334c013e9679a245a03.tar.bz2 |
More debug info
-rw-r--r-- | src/target/riscv/riscv.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/target/riscv/riscv.c b/src/target/riscv/riscv.c index 387b852..efc227b 100644 --- a/src/target/riscv/riscv.c +++ b/src/target/riscv/riscv.c @@ -18,6 +18,8 @@ #include "gdb_regs.h" #include "rtos/rtos.h" +#define RISCV_DEBUG_POLL + /** * Since almost everything can be accomplish by scanning the dbus register, all * functions here assume dbus is already selected. The exception are functions @@ -1118,6 +1120,7 @@ int riscv_openocd_halt(struct target *target) register_cache_invalidate(target->reg_cache); if (riscv_rtos_enabled(target)) { + LOG_DEBUG(" current RTOS hartid is %d", r->rtos_hartid); target->rtos->current_threadid = r->rtos_hartid + 1; target->rtos->current_thread = r->rtos_hartid + 1; } |