cortex_m: Select an AP when accessing the DAP
commit67f24e67347329cb3cd2f72aa84308e0b978cdc5
authorPatrick Stewart <patstew@gmail.com>
Sat, 5 Dec 2015 23:18:33 +0000 (6 00:18 +0100)
committerAndreas Fritiofson <andreas.fritiofson@gmail.com>
Tue, 29 Dec 2015 12:35:04 +0000 (29 12:35 +0000)
tree08925593a35b4de8277ed6210ac1804b70cb6f02
parentc560d9d31b3f46677509246efb2d01a8834944f8
cortex_m: Select an AP when accessing the DAP

Prepare to support multiple cortex-m cores on one DAP. Uses mem_ap_sel_*
functions and removes mem_ap_* functions. Adds a new debug_ap
parameter to the cortex_m (currently set to zero as in existing code).

Change-Id: I6926029d1e7bf44a42d453d1aff349bda824ba72
Signed-off-by: Patrick Stewart <patstew@gmail.com>
Reviewed-on: http://openocd.zylin.com/2983
Tested-by: jenkins
Reviewed-by: Matthias Welwarsky <matthias@welwarsky.de>
Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
src/flash/nor/at91sam4l.c
src/flash/nor/at91samd.c
src/target/arm_adi_v5.c
src/target/arm_adi_v5.h
src/target/armv7m.h
src/target/cortex_a.c
src/target/cortex_m.c