tcl/target/ti_k3: Add a gdb-attach event hook for armv8 and simplify startup function
authorNishanth Menon <nm@ti.com>
Tue, 1 Mar 2022 15:09:55 +0000 (09:09 -0600)
committerAntonio Borneo <borneo.antonio@gmail.com>
Sat, 12 Mar 2022 09:41:04 +0000 (09:41 +0000)
commit4ea21b95f9562ae13ef200461180bc72bbad8926
tree7d28017fc64e80bf469fcc9a88897f15bfbd882b
parent3ba2b515b528094b43d5be5056b9e52f1dc33969
tcl/target/ti_k3: Add a gdb-attach event hook for armv8 and simplify startup function

Since we can detect the type of target as well, reuse the _cpu_no_smp_up
function name and use the target name to simplify the _up function and
maintain consistency with what we introduced for r5.

Lets introduce gdb-attach event in a much cleaner fashion.

NOTE: we add a halt 1000 to retain the default gdb-attach hook behavior

While at it, fix a minor type of s/are/as in "Set Default target are
core 0" and simplify the foreach usage.

Signed-off-by: Nishanth Menon <nm@ti.com>
Change-Id: I3259b7c3ae4c71b06d921edfaefe17c03bb673dc
Reviewed-on: https://review.openocd.org/c/openocd/+/6616
Tested-by: jenkins
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
tcl/target/ti_k3.cfg