tcl/target/ti_k3: Introduce RTOS array variable to set various CPU RTOSes
commitd14fef8495e6d0247ea2929053d27b5c561ac1d0
authorNishanth Menon <nm@ti.com>
Wed, 13 Sep 2023 22:57:29 +0000 (13 17:57 -0500)
committerAntonio Borneo <borneo.antonio@gmail.com>
Sat, 7 Oct 2023 14:46:01 +0000 (7 14:46 +0000)
tree0df79edfa5e98f4bbeab6b0669a6155e9033a2fb
parent7abb93aad4039f88427e1179660c0ee68146e6d4
tcl/target/ti_k3: Introduce RTOS array variable to set various CPU RTOSes

The Texas Instruments' K3 devices are a mix of AMP and SMP systems.
The operating systems used on these processors can vary dramatically
as well. Introduce a RTOS array variable, which is keyed off the cpu
to identify which RTOS is used on that CPU. This can be "auto" or
"hwthread" in case of SMP debug etc.

For example:
AM625 with an general purpose M4F running Zephyr and 4 A53s running SMP
Linux could be invoked by:
openocd -c 'set V8_SMP_DEBUG 1' -c 'set RTOS(am625.cpu.gp_mcu) Zephyr' \
-c "set RTOS(am625.cpu.a53.0) hwthread" -f board/ti_am625evm.cfg

Change-Id: Ib5e59fa2583b3115e5799658afcdd0ee91935e82
Reported-by: Dubravko Srsan <dubravko.srsan@dolotron.com>
Signed-off-by: Nishanth Menon <nm@ti.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/7898
Tested-by: jenkins
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
tcl/target/ti_k3.cfg