]> git.sur5r.net Git - openocd/commit
target/arm: Remove usage of struct arm_jtag in ARMv7 targets
authorAndreas Fritiofson <andreas.fritiofson@gmail.com>
Fri, 13 Nov 2015 23:30:28 +0000 (00:30 +0100)
committerAndreas Fritiofson <andreas.fritiofson@gmail.com>
Tue, 29 Dec 2015 20:27:01 +0000 (20:27 +0000)
commitdc574aa1da291405c6778383c1ad3b252602aee7
tree4cc84b82dbebf9d715b3eb9ea18a402205163d6c
parenta6c4eb03455f6e97fc25183aae249d6ccdcbfb0f
target/arm: Remove usage of struct arm_jtag in ARMv7 targets

The Cortex-A and Cortex-M keeps an arm_jtag struct around just to be
able to pass a pointer to it to one common JTAG function which anyway
only uses the TAP field.

Refactor the function to take a TAP directly, remove the legacy struct
from cortex instances and store the TAP pointer only in the DAP.

Cortex-M makes a call to arm_jtag_setup_connection() with the struct
but the function does nothing useful for a Cortex-M target so remove
the call.

Change-Id: I3b33709ef55372ef14522ed4337e9f2e817ae3ab
Signed-off-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
Reviewed-on: http://openocd.zylin.com/3142
Tested-by: jenkins
Reviewed-by: Matthias Welwarsky <matthias@welwarsky.de>
19 files changed:
src/target/adi_v5_jtag.c
src/target/arm720t.c
src/target/arm7_9_common.c
src/target/arm7tdmi.c
src/target/arm920t.c
src/target/arm926ejs.c
src/target/arm946e.c
src/target/arm966e.c
src/target/arm9tdmi.c
src/target/arm_adi_v5.h
src/target/arm_jtag.c
src/target/arm_jtag.h
src/target/cortex_a.c
src/target/cortex_a.h
src/target/cortex_m.c
src/target/cortex_m.h
src/target/embeddedice.c
src/target/etm.c
src/target/feroceon.c