tcl/target: add SPDX tag
[fw/openocd] / tcl / target / esi32xx.cfg
1 # SPDX-License-Identifier: GPL-2.0-or-later
2
3 #
4 # EnSilica eSi-32xx SoC (eSi-RISC Family)
5 # http://www.ensilica.com/risc-ip/
6 #
7
8 if { [info exists CHIPNAME] } {
9     set _CHIPNAME $CHIPNAME
10 } else {
11     set _CHIPNAME esi32xx
12 }
13
14 if { [info exists CPUTAPID] } {
15     set _CPUTAPID $CPUTAPID
16 } else {
17     set _CPUTAPID 0x11234001
18 }
19
20 jtag newtap $_CHIPNAME cpu -irlen 4 -expected-id $_CPUTAPID
21
22 set _TARGETNAME $_CHIPNAME.cpu
23 target create $_TARGETNAME esirisc -chain-position $_CHIPNAME.cpu
24
25 # Targets with the UNIFIED_ADDRESS_SPACE option disabled should set
26 # CACHEARCH to 'harvard'. By default, 'von_neumann' is assumed.
27 if { [info exists CACHEARCH] } {
28     $_TARGETNAME esirisc cache_arch $CACHEARCH
29 }
30
31 adapter speed 2000
32
33 reset_config none
34
35 # The default linker scripts provided by the eSi-RISC toolchain do not
36 # specify attributes on memory regions, which results in incorrect
37 # application of software breakpoints by GDB.
38 gdb_breakpoint_override hard