aboutsummaryrefslogtreecommitdiff
path: root/riscv/debug_module.h
diff options
context:
space:
mode:
authorTim Newsome <tim@sifive.com>2019-07-16 13:29:45 -0700
committerChih-Min Chao <chihmin.chao@sifive.com>2019-07-22 02:11:03 -0700
commitcf482745a833428fef10bbbf8376c9c092727458 (patch)
treeb717fbe8a007b9f844e1c3c06486d19b696dacb6 /riscv/debug_module.h
parent98b4b07cb428eb0be1c96e857ab52b68a30c9f2e (diff)
downloadspike-cf482745a833428fef10bbbf8376c9c092727458.zip
spike-cf482745a833428fef10bbbf8376c9c092727458.tar.gz
spike-cf482745a833428fef10bbbf8376c9c092727458.tar.bz2
Writing non-existent CSRs, access FPRs with mstatus.FS=0 (#311)
* Don't corrupt s0 when abstract CSR write fails. * Support abstract FPR access then mstatus.FS=0 Discussion on the spec list leans towards this being a requirement. Certainly users want their debugger to be able to access all registers regardless of target state.
Diffstat (limited to 'riscv/debug_module.h')
-rw-r--r--riscv/debug_module.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/riscv/debug_module.h b/riscv/debug_module.h
index 8fd6f67..42a521e 100644
--- a/riscv/debug_module.h
+++ b/riscv/debug_module.h
@@ -135,7 +135,7 @@ class debug_module_t : public abstract_device_t
static const unsigned debug_data_start = 0x380;
unsigned debug_progbuf_start;
- static const unsigned debug_abstract_size = 5;
+ static const unsigned debug_abstract_size = 12;
unsigned debug_abstract_start;
// R/W this through custom registers, to allow debuggers to test that
// functionality.