3 interface remote_bitbang
4 remote_bitbang_host $::env(REMOTE_BITBANG_HOST)
5 remote_bitbang_port $::env(REMOTE_BITBANG_PORT)
8 jtag newtap $_CHIPNAME cpu -irlen 5 -expected-id 0x10e31913
10 set _TARGETNAME $_CHIPNAME.cpu
11 target create $_TARGETNAME riscv -chain-position $_TARGETNAME
13 gdb_report_data_abort enable
14 gdb_report_register_access_error enable
16 # Expose an unimplemented CSR so we can test non-existent register access
18 riscv expose_csrs 2288
19 riscv expose_custom 1,12345-12348
23 set challenge [ocd_riscv authdata_read]
24 riscv authdata_write [expr $challenge + 1]