aboutsummaryrefslogtreecommitdiff
path: root/debug/targets/RISC-V/spike.cfg
diff options
context:
space:
mode:
Diffstat (limited to 'debug/targets/RISC-V/spike.cfg')
-rw-r--r--debug/targets/RISC-V/spike.cfg16
1 files changed, 16 insertions, 0 deletions
diff --git a/debug/targets/RISC-V/spike.cfg b/debug/targets/RISC-V/spike.cfg
new file mode 100644
index 0000000..9b1841c
--- /dev/null
+++ b/debug/targets/RISC-V/spike.cfg
@@ -0,0 +1,16 @@
+adapter_khz 10000
+
+interface remote_bitbang
+remote_bitbang_host $::env(REMOTE_BITBANG_HOST)
+remote_bitbang_port $::env(REMOTE_BITBANG_PORT)
+
+set _CHIPNAME riscv
+jtag newtap $_CHIPNAME cpu -irlen 5 -expected-id 0x10e31913
+
+set _TARGETNAME $_CHIPNAME.cpu
+target create $_TARGETNAME riscv -chain-position $_TARGETNAME -rtos riscv
+
+gdb_report_data_abort enable
+
+init
+reset halt