projects
/
riscv-tests.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Test debug authentication.
[riscv-tests.git]
/
debug
/
targets
/
RISC-V
/
spike-rtos.cfg
diff --git
a/debug/targets/RISC-V/spike-rtos.cfg
b/debug/targets/RISC-V/spike-rtos.cfg
index 799e3cba3151c493e89f163e4b39bf1752897b7a..159a70fac42c7ffcaa6af1f1371ef43f0f73fdce 100644
(file)
--- a/
debug/targets/RISC-V/spike-rtos.cfg
+++ b/
debug/targets/RISC-V/spike-rtos.cfg
@@
-13,5
+13,13
@@
target create $_TARGETNAME riscv -chain-position $_TARGETNAME -rtos riscv
gdb_report_data_abort enable
gdb_report_data_abort enable
+# Expose an unimplemented CSR so we can test non-existent register access
+# behavior.
+riscv expose_csrs 2288
+
init
init
-reset halt
+
+set challenge [ocd_riscv authdata_read]
+riscv authdata_write [expr $challenge + 1]
+
+halt