Skip to content

Commit a9015ba

Browse files
zapb-0borneoa
authored andcommitted
tcl/target/lsch3_common: Remove 'mem2array'
The 'mem2array' function is deprecated and replaced by 'read_memory'. Change-Id: Iea54a390d67978d20dbb99ab6f7f4178dda481c2 Reported-by: Paul Fertser <[email protected]> Signed-off-by: Marc Schink <[email protected]> Reviewed-on: https://review.openocd.org/c/openocd/+/8962 Reviewed-by: Paul Fertser <[email protected]> Tested-by: jenkins Reviewed-by: Antonio Borneo <[email protected]>
1 parent 1040bde commit a9015ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tcl/target/lsch3_common.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ proc release_cpu {cpu} {
5151
}
5252

5353
# Release the cpu; it will start executing something bogus
54-
mem2array regs 32 $RST_BRRL 1
55-
mww $RST_BRRL [expr {$regs(0) | 1 << $cpu}]
54+
set reg [read_memory $RST_BRRL 32 1]
55+
mww $RST_BRRL [expr {$reg | 1 << $cpu}]
5656

5757
if {$not_halted} {
5858
resume

0 commit comments

Comments
 (0)