adiv6: prepare for AP level ROM tables
authorAntonio Borneo <borneo.antonio@gmail.com>
Wed, 11 Aug 2021 09:03:49 +0000 (11:03 +0200)
committerAntonio Borneo <borneo.antonio@gmail.com>
Fri, 24 Jun 2022 21:38:30 +0000 (21:38 +0000)
commitb987a419b41f9f2c6e0aaf0ca2ff4b6c347ae7d8
treed670d90c350977f168b28ee033ddaf0d731c9f79
parent8c1d518232c3105e5599099f41038212250f3798
adiv6: prepare for AP level ROM tables

ADIv6 adds AP that only contain a ROM table in the AP itself, that
can point to other AP containing either another AP level ROM table
or a MEM-AP to be parsed as usual.

To handle recursive AP access, reorganize the code to:
- pass the depth==0 from the command 'dap info';
- print the AP number as first line, adding proper indentation on
  depth>0;
- align the following print with proper indentation.

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