aboutsummaryrefslogtreecommitdiff
path: root/debug/targets/RISC-V/spike-1.cfg
diff options
context:
space:
mode:
authorTim Newsome <tim@sifive.com>2018-02-27 14:28:26 -0800
committerTim Newsome <tim@sifive.com>2018-02-27 14:28:26 -0800
commitdb31c3dd894bca1e7aed903a159cf0e794f177c0 (patch)
treea5c7cade840b119882b46e42b4dd6bed752f91b9 /debug/targets/RISC-V/spike-1.cfg
parentba39c5fc2885eb1400d6f9e13ae6c7588c1c1241 (diff)
downloadriscv-tests-debug_auth.zip
riscv-tests-debug_auth.tar.gz
riscv-tests-debug_auth.tar.bz2
Test debug authentication.debug_auth
Also halt instead of reset spike targets, which tests a more complicated code path.
Diffstat (limited to 'debug/targets/RISC-V/spike-1.cfg')
-rw-r--r--debug/targets/RISC-V/spike-1.cfg6
1 files changed, 5 insertions, 1 deletions
diff --git a/debug/targets/RISC-V/spike-1.cfg b/debug/targets/RISC-V/spike-1.cfg
index fc20b53..eb9cfd7 100644
--- a/debug/targets/RISC-V/spike-1.cfg
+++ b/debug/targets/RISC-V/spike-1.cfg
@@ -13,4 +13,8 @@ target create $_TARGETNAME riscv -chain-position $_TARGETNAME
gdb_report_data_abort enable
init
-reset halt
+
+set challenge [ocd_riscv authdata_read]
+riscv authdata_write [expr $challenge + 1]
+
+halt