Test debug authentication.
[riscv-tests.git] / debug / targets / RISC-V / spike-1.cfg
index fc20b53b4341ff600c6ef375cad8660460793df9..f420417dcd505e5d47c03040bef6a9dc4ada7c20 100644 (file)
@@ -12,5 +12,13 @@ target create $_TARGETNAME riscv -chain-position $_TARGETNAME
 
 gdb_report_data_abort enable
 
+# Expose an unimplemented CSR so we can test non-existent register access
+# behavior.
+riscv expose_csrs 2288
+
 init
-reset halt
+
+set challenge [ocd_riscv authdata_read]
+riscv authdata_write [expr $challenge + 1]
+
+halt