Skip to content

Commit

Permalink
tcl/target: Make sure R-Car Gen3 _targets variable is global
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-on: https://review.openocd.org/c/openocd/+/8470
Tested-by: jenkins
Reviewed-by: Antonio Borneo <[email protected]>
  • Loading branch information
marex authored and borneoa committed Sep 7, 2024
1 parent 75b418f commit cbed09e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tcl/target/renesas_rcar_gen3.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cbed09e

Please sign in to comment.