X-Git-Url: https://git.libre-soc.org/?p=riscv-tests.git;a=blobdiff_plain;f=debug%2Ftargets%2FRISC-V%2Fspike-2.cfg;h=114d5b880b953861066d045b20112535226c9477;hp=c78cf8f82d6078d7270415082156c2217fe710f6;hb=45380af7d42ee3302fc229030694f8ea4506d79f;hpb=efb44a9a906e2281be7a199ca799d0256e921f1f diff --git a/debug/targets/RISC-V/spike-2.cfg b/debug/targets/RISC-V/spike-2.cfg index c78cf8f..114d5b8 100644 --- a/debug/targets/RISC-V/spike-2.cfg +++ b/debug/targets/RISC-V/spike-2.cfg @@ -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