]> git.sur5r.net Git - openocd/blobdiff - src/target/cortex_a.c
cortex: Set default memaccess_tck only during examine
[openocd] / src / target / cortex_a.c
index 11558b9a6988d6b225869e9126c2d367cc4d37ee..5e3a1a4b9a2dc6d2d8f275152e1a1a608c2d4b20 100644 (file)
@@ -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;