diff options
author | Andreas Fritiofson <andreas.fritiofson@gmail.com> | 2015-11-14 00:30:28 +0100 |
---|---|---|
committer | Andreas Fritiofson <andreas.fritiofson@gmail.com> | 2015-12-29 20:27:01 +0000 |
commit | dc574aa1da291405c6778383c1ad3b252602aee7 (patch) | |
tree | 4cc84b82dbebf9d715b3eb9ea18a402205163d6c /src/target/cortex_a.c | |
parent | a6c4eb03455f6e97fc25183aae249d6ccdcbfb0f (diff) |
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>
Diffstat (limited to 'src/target/cortex_a.c')
-rw-r--r-- | src/target/cortex_a.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/target/cortex_a.c b/src/target/cortex_a.c index 45a877d3..7da57b49 100644 --- a/src/target/cortex_a.c +++ b/src/target/cortex_a.c @@ -3127,12 +3127,8 @@ static int cortex_a_init_arch_info(struct target *target, if (!tap->dap) { tap->dap = dap_init(); - /* prepare JTAG information for the new target */ - cortex_a->jtag_info.tap = tap; - cortex_a->jtag_info.scann_size = 4; - /* Leave (only) generic DAP stuff for debugport_init() */ - tap->dap->jtag_info = &cortex_a->jtag_info; + tap->dap->tap = tap; } tap->dap->ap[dap_ap_get_select(tap->dap)].memaccess_tck = 80; |