mirror of
https://git.code.sf.net/p/openocd/code
synced 2025-03-13 15:27:36 +00:00
The SPDX tag is aimed at machine handling and it's thus expected to be placed in the first line. Change-Id: I3992856eeb28b333c38d010ef286e22471ede263 Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> Reviewed-on: https://review.openocd.org/c/openocd/+/7026 Tested-by: jenkins
33 lines
833 B
Tcl
33 lines
833 B
Tcl
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
# Copyright (C) 2015, 2020 Synopsys, Inc.
|
|
# Anton Kolesov <anton.kolesov@synopsys.com>
|
|
# Didin Evgeniy <didin@synopsys.com>
|
|
|
|
source [find cpu/arc/v2.tcl]
|
|
|
|
proc arc_em_examine_target { {target ""} } {
|
|
# Will set current target
|
|
arc_v2_examine_target $target
|
|
}
|
|
|
|
proc arc_em_init_regs { } {
|
|
arc_v2_init_regs
|
|
|
|
[target current] configure \
|
|
-event examine-end "arc_em_examine_target [target current]"
|
|
}
|
|
|
|
# Scripts in "target" folder should call this function instead of direct
|
|
# invocation of arc_common_reset.
|
|
proc arc_em_reset { {target ""} } {
|
|
arc_v2_reset $target
|
|
|
|
# Set DEBUG.ED bit to enable clock in actionpoint module.
|
|
# This is specific to ARC EM.
|
|
set debug [arc jtag get-aux-reg 5]
|
|
if { !($debug & (1 << 20)) } {
|
|
arc jtag set-aux-reg 5 [expr {$debug | (1 << 20)}]
|
|
}
|
|
}
|