diff options
author | Marek Vasut <marek.vasut@gmail.com> | 2024-08-23 01:29:02 +0200 |
---|---|---|
committer | Antonio Borneo <borneo.antonio@gmail.com> | 2024-09-07 11:42:25 +0000 |
commit | cbed09ee9bdbba27ca93f5883b79595f7e9d347d (patch) | |
tree | 1f4cef9679fde773fdc3494af94accf0ae3e98c7 | |
parent | 75b418faa7b9849a118c86ccac019d2d9ea235af (diff) | |
download | riscv-openocd-cbed09ee9bdbba27ca93f5883b79595f7e9d347d.zip riscv-openocd-cbed09ee9bdbba27ca93f5883b79595f7e9d347d.tar.gz riscv-openocd-cbed09ee9bdbba27ca93f5883b79595f7e9d347d.tar.bz2 |
tcl/target: Make sure R-Car Gen3 _targets variable is global
The _targets has to be global as it is accessed at the end of this file.
This is already the case for setup_a5x {}, assure it is the same way for
setup_crx{} . Without this change, the _targets at the end of this file
is empty in case the Cortex-R is the boot core, fix this.
Change-Id: I4979e3125ec7d93bbd56eee0096ae1d9c5f6a565
Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/8470
Tested-by: jenkins
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
-rw-r--r-- | tcl/target/renesas_rcar_gen3.cfg | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tcl/target/renesas_rcar_gen3.cfg b/tcl/target/renesas_rcar_gen3.cfg index 8dc0e7a..73b3003 100644 --- a/tcl/target/renesas_rcar_gen3.cfg +++ b/tcl/target/renesas_rcar_gen3.cfg @@ -159,6 +159,7 @@ proc setup_a5x {core_name dbgbase ctibase num boot} { proc setup_crx {core_name dbgbase ctibase num boot} { global _CHIPNAME global _DAPNAME + global _targets for { set _core 0 } { $_core < $num } { incr _core } { set _TARGETNAME $_CHIPNAME.$core_name set _CTINAME $_TARGETNAME.cti |