diff options
author | Antonio Borneo <borneo.antonio@gmail.com> | 2019-01-27 15:49:34 +0100 |
---|---|---|
committer | Antonio Borneo <borneo.antonio@gmail.com> | 2020-09-05 17:10:38 +0100 |
commit | 60f104f45013ce0237df651e19f30181966a7256 (patch) | |
tree | 2ae7664522ad06592e184926ebb5cf78ad52da51 /tcl | |
parent | 1457a1ab425febd3dfceeb8c908b69135ff0b8b6 (diff) | |
download | riscv-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 'tcl')
-rw-r--r-- | tcl/target/swj-dp.tcl | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tcl/target/swj-dp.tcl b/tcl/target/swj-dp.tcl index 1d274cb..3fb0263 100644 --- a/tcl/target/swj-dp.tcl +++ b/tcl/target/swj-dp.tcl @@ -24,11 +24,12 @@ if [catch {transport select}] { } proc swj_newdap {chip tag args} { - if [using_hla] { - eval hla newtap $chip $tag $args - } elseif [using_jtag] { + if [using_jtag] { eval jtag newtap $chip $tag $args } elseif [using_swd] { eval swd newdap $chip $tag $args + } else { + echo "Error: transport '[ transport select ]' not supported by swj_newdap" + shutdown } } |