adiv6: stay in same AP during dap_lookup_cs_component()
authorAntonio Borneo <borneo.antonio@gmail.com>
Sun, 23 Jan 2022 00:25:45 +0000 (01:25 +0100)
committerAntonio Borneo <borneo.antonio@gmail.com>
Fri, 24 Jun 2022 21:39:16 +0000 (21:39 +0000)
commit1842cf69a92d07866ebefee3bc7090a58782b059
treeab787f7e42cdf5be3fe46efb316591357ec11a52
parent9f0ac0e6bba85ca8afc99b77ce4ec2df96dba2bb
adiv6: stay in same AP during dap_lookup_cs_component()

Configuration file can specify, as target's debug AP, an AP that
contains a ROM table that points, in turn, to other APs.
Current code in cortex_a and aarch64 is not able to handle a
return from dap_lookup_cs_component() that points to another AP.

While it could be interesting to specify 'root' as target's debug
AP, drop any found value if it's not in the starting AP.

Change-Id: Id206e4fa7a29e9402c8e2393026817b410bbb8bd
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/6826
Tested-by: jenkins
src/target/arm_adi_v5.c