Test debug authentication.
[riscv-tests.git] / debug / targets / RISC-V / spike-rtos.cfg
index 799e3cba3151c493e89f163e4b39bf1752897b7a..159a70fac42c7ffcaa6af1f1371ef43f0f73fdce 100644 (file)
@@ -13,5 +13,13 @@ target create $_TARGETNAME riscv -chain-position $_TARGETNAME -rtos riscv
 
 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