This is an automated email from Gerrit.

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

-- gerrit

commit 89ea614fbf6ed882c76cd3c9932d10c3fcd38531
Author: Tarek BOCHKATI <[email protected]>
Date:   Tue Jan 12 11:57:18 2021 +0100

    cortex_m: [FIX] ARMv8-M does not support VECTRESET
    
    ref: Arm®v8-M Architecture Reference Manual (DDI0553B.m)
         D1.2.3: AIRCR, Application Interrupt and Reset Control Register
                 Bit [0] is RES0
    
    Change-Id: I6ef451b2c114487e2732852a60e86c292ffa6a50
    Signed-off-by: Tarek BOCHKATI <[email protected]>

diff --git a/src/target/cortex_m.c b/src/target/cortex_m.c
index ac308b4..ce2c426 100644
--- a/src/target/cortex_m.c
+++ b/src/target/cortex_m.c
@@ -2011,8 +2011,8 @@ int cortex_m_examine(struct target *target)
                }
                LOG_DEBUG("cpuid: 0x%8.8" PRIx32 "", cpuid);
 
-               /* VECTRESET is not supported on Cortex-M0, M0+ and M1 */
-               cortex_m->vectreset_supported = i > 1;
+               /* VECTRESET is supported only on ARMv7-M cores */
+               cortex_m->vectreset_supported = !armv7m->arm.is_armv8m && 
!armv7m->arm.is_armv6m;
 
                if (i == 4) {
                        target_read_u32(target, MVFR0, &mvfr0);

-- 


_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to