aboutsummaryrefslogtreecommitdiff
path: root/riscv/debug_module.h
diff options
context:
space:
mode:
authorTim Newsome <tim@sifive.com>2019-04-04 14:34:33 -0700
committerGitHub <noreply@github.com>2019-04-04 14:34:33 -0700
commit69a8b5d2cfc54c36c86b8733a1fbcdffe9811a94 (patch)
tree7a5ec2a8021c4fd69f78b11ddd90d386eb9876bd /riscv/debug_module.h
parent3e79495c38bf58df9c7b389205032b2eb3f45fb7 (diff)
downloadspike-69a8b5d2cfc54c36c86b8733a1fbcdffe9811a94.zip
spike-69a8b5d2cfc54c36c86b8733a1fbcdffe9811a94.tar.gz
spike-69a8b5d2cfc54c36c86b8733a1fbcdffe9811a94.tar.bz2
Add --debug-no-abstract-csr (#267)
This is used to make sure that OpenOCD can work on targets that don't support abstract access to CSR registers. It replaces a simpler hack, which caused #266.
Diffstat (limited to 'riscv/debug_module.h')
-rw-r--r--riscv/debug_module.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/riscv/debug_module.h b/riscv/debug_module.h
index 5bd9e66..f24a097 100644
--- a/riscv/debug_module.h
+++ b/riscv/debug_module.h
@@ -95,7 +95,8 @@ class debug_module_t : public abstract_device_t
*/
debug_module_t(sim_t *sim, unsigned progbufsize,
unsigned max_bus_master_bits, bool require_authentication,
- unsigned abstract_rti, bool support_hasel);
+ unsigned abstract_rti, bool support_hasel,
+ bool support_abstract_csr_access);
~debug_module_t();
void add_device(bus_t *bus);
@@ -127,6 +128,7 @@ class debug_module_t : public abstract_device_t
unsigned max_bus_master_bits;
bool require_authentication;
unsigned abstract_rti;
+ bool support_abstract_csr_access;
static const unsigned debug_data_start = 0x380;
unsigned debug_progbuf_start;