openocd/src
Antonio Borneo 2fe2cafe20 mem_ap: fix target arch_info type
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
2021-05-22 10:11:10 +01:00
..
flash flash: fix some minor typo 2021-05-22 10:06:32 +01:00
helper helper/command: silent debug msg on command register/unregister 2021-05-22 10:10:37 +01:00
jtag jtag: fix some minor typo 2021-05-22 10:06:38 +01:00
pld Cleanup of config/includes. 2021-05-01 14:35:09 +01:00
rtos openocd: fix some minor typo 2021-05-22 10:06:51 +01:00
rtt openocd: fix doxygen parameters of functions 2021-01-13 11:33:53 +00:00
server server: gdb_server: Add colon for target extended-remote 2021-05-15 20:57:12 +01:00
svf Cleanup of config/includes. 2021-05-01 14:35:09 +01:00
target mem_ap: fix target arch_info type 2021-05-22 10:11:10 +01:00
transport Cleanup of config/includes. 2021-05-01 14:35:09 +01:00
xsvf openocd: fix some minor typo 2021-05-22 10:06:51 +01:00
hello.c helper/command: change prototype of command_print/command_print_sameline 2019-05-14 19:37:11 +01:00
hello.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
main.c Cleanup of config/includes. 2021-05-01 14:35:09 +01:00
Makefile.am build: Fix out-of-tree with --disable-dependency-tracking configure flag 2021-04-05 23:24:14 +01:00
openocd.c help: re-implement 'help' independent from tree of struct command 2021-04-18 15:33:54 +01:00
openocd.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00