ipdbg: fix double free of virtual-ir data
[openocd.git] / tcl / target / ti-ar7.cfg
blob28b6cf7877ca04703be10ec7f023e0b2003c7f51
1 # SPDX-License-Identifier: GPL-2.0-or-later
4 # Texas Instruments AR7 SOC - used in many adsl modems.
5 # http://www.linux-mips.org/wiki/AR7
8 if { [info exists CHIPNAME] } {
9     set _CHIPNAME $CHIPNAME
10 } else {
11     set _CHIPNAME ti-ar7
14 if { [info exists ENDIAN] } {
15     set _ENDIAN $ENDIAN
16 } else {
17     set _ENDIAN little
20 if { [info exists CPUTAPID] } {
21     set _CPUTAPID $CPUTAPID
22 } else {
23     set _CPUTAPID 0x0000100f
26 jtag newtap $_CHIPNAME cpu -irlen 5 -expected-id $_CPUTAPID
28 set _TARGETNAME $_CHIPNAME.cpu
29 target create $_TARGETNAME mips_m4k -endian $_ENDIAN -chain-position $_CHIPNAME.cpu
31 # use onboard 4k sram as working area
32 $_TARGETNAME configure -work-area-phys 0x80000000 -work-area-size 0x00001000