aboutsummaryrefslogtreecommitdiff
path: root/debug/targets
diff options
context:
space:
mode:
authorPalmer Dabbelt <palmer@dabbelt.com>2017-03-03 15:13:11 -0800
committerPalmer Dabbelt <palmer@dabbelt.com>2017-03-03 15:18:16 -0800
commita5f84eecc4f7ffc698d57724f49d6aa8ce996e5c (patch)
tree6bef0cfcf9ec92f6748886c1a4397149d5e3b842 /debug/targets
parent6d30dcee896fd464a2c880a3372706226eedba6a (diff)
downloadriscv-tests-a5f84eecc4f7ffc698d57724f49d6aa8ce996e5c.zip
riscv-tests-a5f84eecc4f7ffc698d57724f49d6aa8ce996e5c.tar.gz
riscv-tests-a5f84eecc4f7ffc698d57724f49d6aa8ce996e5c.tar.bz2
Resurrect spike debug support
Diffstat (limited to 'debug/targets')
-rw-r--r--debug/targets/spike/openocd.cfg17
1 files changed, 17 insertions, 0 deletions
diff --git a/debug/targets/spike/openocd.cfg b/debug/targets/spike/openocd.cfg
new file mode 100644
index 0000000..5389da8
--- /dev/null
+++ b/debug/targets/spike/openocd.cfg
@@ -0,0 +1,17 @@
+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
+
+gdb_report_data_abort enable
+
+init
+
+halt