]> git.gag.com Git - fw/openocd/blobdiff - src/target/cortex_m.h
target/cortex_m: cumulate DHCSR sticky bits
[fw/openocd] / src / target / cortex_m.h
index 453305483381bd4db954fc6c50022b9e23b88c57..a5dfbf856aef0aea68f5922373622d3881b13a56 100644 (file)
@@ -77,7 +77,7 @@ struct cortex_m_part_info {
 #define DCB_DEMCR      0xE000EDFC
 #define DCB_DSCSR      0xE000EE08
 
-#define DCRSR_WnR      BIT(16)
+#define DCRSR_WNR      BIT(16)
 
 #define DWT_CTRL       0xE0001000
 #define DWT_CYCCNT     0xE0001004
@@ -213,6 +213,7 @@ struct cortex_m_common {
 
        /* Context information */
        uint32_t dcb_dhcsr;
+       uint32_t dcb_dhcsr_cumulated_sticky;
        uint32_t nvic_dfsr;  /* Debug Fault Status Register - shows reason for debug halt */
        uint32_t nvic_icsr;  /* Interrupt Control State Register - shows active and pending IRQ */