diff --git a/src/target/cortex_a.c b/src/target/cortex_a.c index 11558b9a6..5e3a1a4b9 100644 --- a/src/target/cortex_a.c +++ b/src/target/cortex_a.c @@ -2929,6 +2929,8 @@ static int cortex_a_examine_first(struct target *target) return retval; } + armv7a->debug_ap->memaccess_tck = 80; + /* Search for the AHB-AB. * REVISIT: We should search for AXI-AP as well and make sure the AP's MEMTYPE says it * can access system memory. */ @@ -3117,7 +3119,6 @@ static int cortex_a_init_arch_info(struct target *target, tap->dap->tap = tap; } - tap->dap->ap[dap_ap_get_select(tap->dap)].memaccess_tck = 80; armv7a->arm.dap = tap->dap; cortex_a->fast_reg_read = 0; diff --git a/src/target/cortex_m.c b/src/target/cortex_m.c index b813bd7e0..d539a8241 100644 --- a/src/target/cortex_m.c +++ b/src/target/cortex_m.c @@ -2122,9 +2122,6 @@ static int cortex_m_init_arch_info(struct target *target, armv7m->arm.dap = tap->dap; - /* Leave (only) generic DAP stuff for debugport_init(); */ - tap->dap->ap[dap_ap_get_select(tap->dap)].memaccess_tck = 8; - /* register arch-specific functions */ armv7m->examine_debug_reason = cortex_m_examine_debug_reason;