aboutsummaryrefslogtreecommitdiff
path: root/debug/targets
diff options
context:
space:
mode:
authorRichard Xia <rxia@sifive.com>2016-10-18 14:38:24 -0700
committerRichard Xia <rxia@sifive.com>2016-10-18 14:38:24 -0700
commit2faa3c064a9ac4704976fc06c2ed9c0eda842438 (patch)
treee5079bbf355f004170ae50202132e46259c3f709 /debug/targets
parentc5e29cf553799b0434e2635e3f42314af337a5b2 (diff)
downloadriscv-tests-2faa3c064a9ac4704976fc06c2ed9c0eda842438.zip
riscv-tests-2faa3c064a9ac4704976fc06c2ed9c0eda842438.tar.gz
riscv-tests-2faa3c064a9ac4704976fc06c2ed9c0eda842438.tar.bz2
Pull port number from VCS output and pass to OpenOCD.
Diffstat (limited to 'debug/targets')
-rw-r--r--debug/targets/freedom-e300-sim/openocd.cfg1
-rw-r--r--debug/targets/freedom-u500-sim/openocd.cfg1
2 files changed, 2 insertions, 0 deletions
diff --git a/debug/targets/freedom-e300-sim/openocd.cfg b/debug/targets/freedom-e300-sim/openocd.cfg
index e8edda4..0b80885 100644
--- a/debug/targets/freedom-e300-sim/openocd.cfg
+++ b/debug/targets/freedom-e300-sim/openocd.cfg
@@ -1,6 +1,7 @@
adapter_khz 10000
source [find interface/jtag_vpi.cfg]
+jtag_vpi_set_port $::env(JTAG_VPI_PORT)
set _CHIPNAME riscv
jtag newtap $_CHIPNAME cpu -irlen 5 -expected-id 0x10e31913
diff --git a/debug/targets/freedom-u500-sim/openocd.cfg b/debug/targets/freedom-u500-sim/openocd.cfg
index e8edda4..0b80885 100644
--- a/debug/targets/freedom-u500-sim/openocd.cfg
+++ b/debug/targets/freedom-u500-sim/openocd.cfg
@@ -1,6 +1,7 @@
adapter_khz 10000
source [find interface/jtag_vpi.cfg]
+jtag_vpi_set_port $::env(JTAG_VPI_PORT)
set _CHIPNAME riscv
jtag newtap $_CHIPNAME cpu -irlen 5 -expected-id 0x10e31913