From 21fb735d62ec9d22e5ac10180716db0d9b5b4217 Mon Sep 17 00:00:00 2001 From: Tim Newsome Date: Tue, 21 Feb 2017 20:22:10 -0800 Subject: Improve debug performance. It's still pitiful, but less so. (5KB/s download speed.) The tweaks involve switching to the other context as soon as it might be helpful. The two contexts are executing code, and handling JTAG TAP input. --- riscv/jtag_dtm.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'riscv/jtag_dtm.h') diff --git a/riscv/jtag_dtm.h b/riscv/jtag_dtm.h index 97ce521..063e3f4 100644 --- a/riscv/jtag_dtm.h +++ b/riscv/jtag_dtm.h @@ -36,6 +36,8 @@ class jtag_dtm_t bool tdo() const { return _tdo; } + jtag_state_t state() const { return _state; } + private: debug_module_t *dm; bool _tck, _tms, _tdi, _tdo; @@ -50,7 +52,7 @@ class jtag_dtm_t uint32_t dtmcontrol; uint64_t dmi; - jtag_state_t state; + jtag_state_t _state; void capture_dr(); void update_dr(); -- cgit v1.1