aboutsummaryrefslogtreecommitdiff
path: root/src/jtag/startup.tcl
diff options
context:
space:
mode:
authorAntonio Borneo <borneo.antonio@gmail.com>2019-01-27 15:49:34 +0100
committerAntonio Borneo <borneo.antonio@gmail.com>2020-09-05 17:10:38 +0100
commit60f104f45013ce0237df651e19f30181966a7256 (patch)
tree2ae7664522ad06592e184926ebb5cf78ad52da51 /src/jtag/startup.tcl
parent1457a1ab425febd3dfceeb8c908b69135ff0b8b6 (diff)
downloadriscv-openocd-60f104f45013ce0237df651e19f30181966a7256.zip
riscv-openocd-60f104f45013ce0237df651e19f30181966a7256.tar.gz
riscv-openocd-60f104f45013ce0237df651e19f30181966a7256.tar.bz2
hla_transport: split command registration per transport
All the HLA transports (hla_swd and hla_jtag) register the same set of commands. Such commands are mainly aimed at handling JTAG compatibility that is required for the transport hla_jtag only. Split per transport the command registration and limit the commands to only those required by the transport itself. Replace the command "hla newtap" with the transport specific "swd newdap" or "jtag newtap". Deprecate the command "hla". Change-Id: I79c78fa97b707482608516d3824151a4d07644c0 Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> Reviewed-on: http://openocd.zylin.com/4877 Tested-by: jenkins
Diffstat (limited to 'src/jtag/startup.tcl')
-rw-r--r--src/jtag/startup.tcl9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/jtag/startup.tcl b/src/jtag/startup.tcl
index 90b675f..82327a3 100644
--- a/src/jtag/startup.tcl
+++ b/src/jtag/startup.tcl
@@ -226,4 +226,13 @@ proc xds110_supply_voltage args {
eval xds110 supply $args
}
+proc hla {cmd args} {
+ tailcall "hla $cmd" {*}$args
+}
+
+proc "hla newtap" {args} {
+ echo "DEPRECATED! use 'swj_newdap' not 'hla newtap'"
+ eval swj_newdap $args
+}
+
# END MIGRATION AIDS