Add coverage for single-core non-rtos OpenOCD.
authorTim Newsome <tim@sifive.com>
Thu, 21 Sep 2017 22:19:47 +0000 (15:19 -0700)
committerTim Newsome <tim@sifive.com>
Thu, 21 Sep 2017 22:19:47 +0000 (15:19 -0700)
debug/targets/RISC-V/spike-rtos.cfg [new file with mode: 0644]
debug/targets/RISC-V/spike.cfg
debug/targets/RISC-V/spike32-2.py
debug/targets/RISC-V/spike64-2.py

diff --git a/debug/targets/RISC-V/spike-rtos.cfg b/debug/targets/RISC-V/spike-rtos.cfg
new file mode 100644 (file)
index 0000000..9b1841c
--- /dev/null
@@ -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
index 9b1841cb80ce01b9e736f4ae107289a889529f7f..fc20b53b4341ff600c6ef375cad8660460793df9 100644 (file)
@@ -8,7 +8,7 @@ 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
+target create $_TARGETNAME riscv -chain-position $_TARGETNAME
 
 gdb_report_data_abort enable
 
index 6cf558d4b936c6634100ecde00d289990b50129c..a7b9a1c0a7a1b244afef8f4980554cbd8ec6b53c 100644 (file)
@@ -5,7 +5,7 @@ import spike32  # pylint: disable=import-error
 
 class spike32_2(targets.Target):
     harts = [spike32.spike32_hart(), spike32.spike32_hart()]
-    openocd_config_path = "spike.cfg"
+    openocd_config_path = "spike-rtos.cfg"
     timeout_sec = 30
 
     def create(self):
index c6321dcebb2e4e5be1baa9dcffd92d21f09d74ac..4f6f1ff92851d51b686ad0f672ee6557748a0f93 100644 (file)
@@ -5,7 +5,7 @@ import spike64  # pylint: disable=import-error
 
 class spike64_2(targets.Target):
     harts = [spike64.spike64_hart(), spike64.spike64_hart()]
-    openocd_config_path = "spike.cfg"
+    openocd_config_path = "spike-rtos.cfg"
     timeout_sec = 30
 
     def create(self):