tcl/target/ti_k3: Add a gdb-attach event hook for r5 and simplify startup function
authorNishanth Menon <nm@ti.com>
Mon, 4 Oct 2021 14:20:34 +0000 (09:20 -0500)
committerAntonio Borneo <borneo.antonio@gmail.com>
Sat, 12 Mar 2022 09:40:53 +0000 (09:40 +0000)
commit3ba2b515b528094b43d5be5056b9e52f1dc33969
tree393e1d9b830ec7a8275473a41f45d0eaa6d1341b
parent4b12c9e8c507a1ba748de32c9ab9f3e7654c22b4
tcl/target/ti_k3: Add a gdb-attach event hook for r5 and simplify startup function

Since we can detect the type of target as well, make the attach
function name generic for the follow on cleanup patch on armv8 to use
as well.

Lets introduce gdb-attach event in a much cleaner fashion. We can
introduce a simpler r5_up function since we now have more descriptive
core names making the individual descriptive procs redundant.

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

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