Test debug authentication.
[riscv-tests.git] / debug / targets / RISC-V / spike-2.cfg
index c78cf8f82d6078d7270415082156c2217fe710f6..114d5b880b953861066d045b20112535226c9477 100644 (file)
@@ -20,4 +20,11 @@ gdb_report_data_abort enable
 riscv expose_csrs 2288
 
 init
-reset halt
+
+set challenge [ocd_riscv authdata_read]
+riscv authdata_write [expr $challenge + 1]
+
+targets $_TARGETNAME_0
+halt
+targets $_TARGETNAME_1
+halt