This is an automated email from Gerrit.

Kamal Dasu (kdasu.k...@gmail.com) just uploaded a new patch set to Gerrit, 
which you can find at http://openocd.zylin.com/1600

-- gerrit

commit badecb0ca07ec2709f6f81ee5eb1de29b698a275
Author: Kamal Dasu <kdasu.k...@gmail.com>
Date:   Thu Aug 29 13:17:20 2013 -0400

    cortex_a: Allow debugging when MMU is disabled
    
    When MMU is disabled the user should be allowed
    to read memory, this change does not treat the
    MMU disabled condition as an error. Also we leave
    the MMU state alone.
    
    Change-Id: I5ea3be66bdd2f70c93ded0197a80b95b416db5c6
    Signed-off-by: Kamal Dasu <kdasu.k...@gmail.com>

diff --git a/src/target/cortex_a.c b/src/target/cortex_a.c
index 20821a0..4097be0 100644
--- a/src/target/cortex_a.c
+++ b/src/target/cortex_a.c
@@ -129,10 +129,10 @@ static int cortex_a_mmu_modify(struct target *target, int 
enable)
        struct armv7a_common *armv7a = target_to_armv7a(target);
        int retval = ERROR_OK;
        if (enable) {
-               /*  if mmu enabled at target stop and mmu not enable */
+               /* mmu could be enabled at last target resume and mmu disabled 
the next halt */
                if (!(cortex_a->cp15_control_reg & 0x1U)) {
                        LOG_ERROR("trying to enable mmu on target stopped with 
mmu disable");
-                       return ERROR_FAIL;
+                       return ERROR_OK;
                }
                if (!(cortex_a->cp15_control_reg_curr & 0x1U)) {
                        cortex_a->cp15_control_reg_curr |= 0x1U;

-- 

------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
OpenOCD-devel mailing list
OpenOCD-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to