mem_ap: fix target arch_info type
authorAntonio Borneo <borneo.antonio@gmail.com>
Wed, 6 Jan 2021 17:01:00 +0000 (18:01 +0100)
committerAntonio Borneo <borneo.antonio@gmail.com>
Sat, 22 May 2021 09:11:10 +0000 (10:11 +0100)
The target mem_ap appears as an ARM target, thus it allows the
execution of ARM specific commands causing the crash of OpenOCD.
E.g. 'arm mrc ...' can be executed and segfaults.

Replace the incorrect ARM magic number with a dedicated one.
While there, remove the 'struct arm', that is now holding only the
mem_ap's dap, and replace it with a pointer to the dap.

Change-Id: I881332d3fdf8d8f8271b8711607737b052a5699b
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: http://openocd.zylin.com/6213
Tested-by: jenkins

No differences found