cortex_a: use the ap number specified at target create
commit347b88a3e1997566dc44dae118de8252138833ff
authorAntonio Borneo <borneo.antonio@gmail.com>
Wed, 4 Aug 2021 15:50:02 +0000 (4 17:50 +0200)
committerAntonio Borneo <borneo.antonio@gmail.com>
Sun, 22 Aug 2021 20:26:38 +0000 (22 20:26 +0000)
treef20e946fe0db46e9b58516a68806da7834cbf4ab
parent7a61a006decf828f0f75e0602cc17d6efb897f57
cortex_a: use the ap number specified at target create

Current implementation ignores the flag '-ap-num' provided to
command 'target create' and searches for the first AP of APB type.

If specified, use the ap number.

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