This is an automated email from Gerrit.

Guido Günther (a...@sigxcpu.org) just uploaded a new patch set to Gerrit, which 
you can find at http://openocd.zylin.com/4647

-- gerrit

commit 8126d710b145bb04a8b41691d5d059981e19b91a
Author: Guido Günther <a...@sigxcpu.org>
Date:   Fri Aug 10 12:01:17 2018 +0200

    target: armv8: Ensure target is halted for virt2phys
    
    Othewise the error reported as
    
        Timeout waiting for dpm prepare
    
    Change-Id: Ieed2fdcd94ae4e877a749df3eec07a01dbf80b10
    Closes: https://sourceforge.net/p/openocd/tickets/201/
    Signed-off-by: Guido Günther <guido.gunt...@puri.sm>

diff --git a/src/target/armv8.c b/src/target/armv8.c
index dfa2c67..866ab16 100644
--- a/src/target/armv8.c
+++ b/src/target/armv8.c
@@ -936,6 +936,11 @@ int armv8_mmu_translate_va_pa(struct target *target, 
target_addr_t va,
                        "Secure", "Not Secure"
        };
 
+       if (target->state != TARGET_HALTED) {
+               LOG_WARNING("target not halted");
+               return ERROR_TARGET_NOT_HALTED;
+       }
+
        retval = dpm->prepare(dpm);
        if (retval != ERROR_OK)
                return retval;

-- 

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
OpenOCD-devel mailing list
OpenOCD-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to