cortex_a: do not try to use MMU for translation if it wasn't enabled on target stop
[fw/openocd] / src / target / dsp563xx.h
index b2ee9d1f67fe83712c6f34f2688bdcbbf906cc80..446ad3f53746f13eb2c239d865cf27d439bb60dd 100644 (file)
@@ -31,6 +31,16 @@ struct mcu_jtag {
        struct jtag_tap *tap;
 };
 
+enum breakpoint_usage {
+       BPU_NONE = 0,
+       BPU_BREAKPOINT,
+       BPU_WATCHPOINT
+};
+
+struct hardware_breakpoint {
+       enum breakpoint_usage used;
+};
+
 struct dsp563xx_common {
        struct mcu_jtag jtag_info;
        struct reg_cache *core_cache;
@@ -40,6 +50,11 @@ struct dsp563xx_common {
        /* register cache to processor synchronization */
        int (*read_core_reg) (struct target *target, int num);
        int (*write_core_reg) (struct target *target, int num);
+
+       struct hardware_breakpoint hardware_breakpoint[1];
+
+       /*Were the hardware breakpoints cleared on startup?*/
+       int hardware_breakpoints_cleared;
 };
 
 struct dsp563xx_core_reg {