Add test case for `riscv expose_custom`.
[riscv-tests.git] / debug / targets / RISC-V / spike-1.cfg
1 adapter_khz 10000
2
3 interface remote_bitbang
4 remote_bitbang_host $::env(REMOTE_BITBANG_HOST)
5 remote_bitbang_port $::env(REMOTE_BITBANG_PORT)
6
7 set _CHIPNAME riscv
8 jtag newtap $_CHIPNAME cpu -irlen 5 -expected-id 0x10e31913
9
10 set _TARGETNAME $_CHIPNAME.cpu
11 target create $_TARGETNAME riscv -chain-position $_TARGETNAME
12
13 gdb_report_data_abort enable
14 gdb_report_register_access_error enable
15
16 # Expose an unimplemented CSR so we can test non-existent register access
17 # behavior.
18 riscv expose_csrs 2288
19 riscv expose_custom 1,12345-12348
20
21 init
22
23 set challenge [ocd_riscv authdata_read]
24 riscv authdata_write [expr $challenge + 1]
25
26 halt