aboutsummaryrefslogtreecommitdiff
path: root/riscv/jtag_dtm.h
diff options
context:
space:
mode:
authorTim Newsome <tim@sifive.com>2017-02-21 20:22:10 -0800
committerTim Newsome <tim@sifive.com>2017-02-21 20:22:10 -0800
commit21fb735d62ec9d22e5ac10180716db0d9b5b4217 (patch)
tree2c67c21967c80a6554f204a8d45f8463dfd4e303 /riscv/jtag_dtm.h
parent0e848d2f4376726e74bbf0cecb97ca15e28ca675 (diff)
downloadspike-21fb735d62ec9d22e5ac10180716db0d9b5b4217.zip
spike-21fb735d62ec9d22e5ac10180716db0d9b5b4217.tar.gz
spike-21fb735d62ec9d22e5ac10180716db0d9b5b4217.tar.bz2
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.
Diffstat (limited to 'riscv/jtag_dtm.h')
-rw-r--r--riscv/jtag_dtm.h4
1 files changed, 3 insertions, 1 deletions
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();