This is an automated email from Gerrit.

Andreas Fritiofson ([email protected]) just uploaded a new patch set 
to Gerrit, which you can find at http://openocd.zylin.com/3155

-- gerrit

commit 9dca6127205ed585735789a5c8b8b6f4c8ba8695
Author: Andreas Fritiofson <[email protected]>
Date:   Sun Dec 6 16:58:13 2015 +0100

    cortex: Set default memaccess_tck only during examine
    
    It's currently set during target creation but the AP that will be used
    for the target is not even known.
    
    Change-Id: I4502e7eb1fa8d90f746445b8cf8a4c21cb7d519e
    Signed-off-by: Andreas Fritiofson <[email protected]>

diff --git a/src/target/cortex_a.c b/src/target/cortex_a.c
index 11558b9..5e3a1a4 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 b813bd7..d539a82 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;
 

-- 

------------------------------------------------------------------------------
Go from Idea to Many App Stores Faster with Intel(R) XDK
Give your users amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
http://pubads.g.doubleclick.net/gampad/clk?id=254741911&iu=/4140
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to