aboutsummaryrefslogtreecommitdiff
path: root/tcl
diff options
context:
space:
mode:
authorAlvin Šipraga <alsi@bang-olufsen.dk>2022-06-11 00:01:01 +0200
committerAntonio Borneo <borneo.antonio@gmail.com>2022-06-24 21:48:27 +0000
commitf23ac683430ffb08b511dd02afc93bc1f454a017 (patch)
tree98dea2f6e543bbd3dd754bce35b6bfd4966926b4 /tcl
parent334a187e64121cb1f8bf6f07f5400e0e5ba8c0ff (diff)
downloadriscv-openocd-f23ac683430ffb08b511dd02afc93bc1f454a017.zip
riscv-openocd-f23ac683430ffb08b511dd02afc93bc1f454a017.tar.gz
riscv-openocd-f23ac683430ffb08b511dd02afc93bc1f454a017.tar.bz2
tcl/target/imx8m: use hwthread rtos
In order to facilitate debugging multiple cores, specify the coreid and the hwthread rtos in the imx8m target configuration. Change-Id: Ibd871517a160ceca15002fb10e27cb793f14d086 Signed-off-by: Alvin Šipraga <alsi@bang-olufsen.dk> Reviewed-on: https://review.openocd.org/c/openocd/+/7019 Tested-by: jenkins Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
Diffstat (limited to 'tcl')
-rw-r--r--tcl/target/imx8m.cfg3
1 files changed, 2 insertions, 1 deletions
diff --git a/tcl/target/imx8m.cfg b/tcl/target/imx8m.cfg
index 9a8bfec..af424c1 100644
--- a/tcl/target/imx8m.cfg
+++ b/tcl/target/imx8m.cfg
@@ -38,13 +38,14 @@ for { set _core 0 } { $_core < $_cores } { incr _core } {
-baseaddr [lindex $CTIBASE $_core]
set _command "target create $_TARGETNAME.$_core aarch64 -dap $_CHIPNAME.dap \
- -dbgbase [lindex $DBGBASE $_core] -cti $_CTINAME.$_core"
+ -dbgbase [lindex $DBGBASE $_core] -cti $_CTINAME.$_core -coreid $_core"
if { $_core != 0 } {
# non-boot core examination may fail
set _command "$_command -defer-examine"
set _smp_command "$_smp_command $_TARGETNAME.$_core"
} else {
+ set _command "$_command -rtos hwthread"
set _smp_command "target smp $_TARGETNAME.$_core"
}