X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=src%2Ftarget%2Fcortex_a.h;h=ff0343208e9dc053267e70d73e9fe7fa990e1f34;hp=ebf79b88c745fba4d244d025ca9d365e58d65431;hb=0a2f1b29e678c97c7981090f769e841cbd583442;hpb=6e32887f917b8e5a870e2d485139820ee5161b4f diff --git a/src/target/cortex_a.h b/src/target/cortex_a.h index ebf79b88c7..ff0343208e 100644 --- a/src/target/cortex_a.h +++ b/src/target/cortex_a.h @@ -22,13 +22,11 @@ * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * - * along with this program; if not, write to the * - * Free Software Foundation, Inc., * - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * + * along with this program. If not, see . * ***************************************************************************/ -#ifndef CORTEX_A_H -#define CORTEX_A_H +#ifndef OPENOCD_TARGET_CORTEX_A_H +#define OPENOCD_TARGET_CORTEX_A_H #include "armv7a.h" @@ -55,6 +53,16 @@ #define CORTEX_A_PADDRDBG_CPU_SHIFT 13 +enum cortex_a_isrmasking_mode { + CORTEX_A_ISRMASK_OFF, + CORTEX_A_ISRMASK_ON, +}; + +enum cortex_a_dacrfixup_mode { + CORTEX_A_DACRFIXUP_OFF, + CORTEX_A_DACRFIXUP_ON +}; + struct cortex_a_brp { int used; int type; @@ -65,7 +73,6 @@ struct cortex_a_brp { struct cortex_a_common { int common_magic; - struct arm_jtag jtag_info; /* Context information */ uint32_t cpudbg_dscr; @@ -74,9 +81,12 @@ struct cortex_a_common { uint32_t cp15_control_reg; /* latest cp15 register value written and cpsr processor mode */ uint32_t cp15_control_reg_curr; + /* auxiliary control reg */ + uint32_t cp15_aux_control_reg; + /* DACR */ + uint32_t cp15_dacr_reg; enum arm_mode curr_mode; - /* Breakpoint register pairs */ int brp_num_context; int brp_num; @@ -87,10 +97,11 @@ struct cortex_a_common { int fast_reg_read; uint32_t cpuid; - uint32_t ctypr; - uint32_t ttypr; uint32_t didr; + enum cortex_a_isrmasking_mode isrmasking_mode; + enum cortex_a_dacrfixup_mode dacrfixup_mode; + struct armv7a_common armv7a_common; }; @@ -101,4 +112,4 @@ target_to_cortex_a(struct target *target) return container_of(target->arch_info, struct cortex_a_common, armv7a_common.arm); } -#endif /* CORTEX_A_H */ +#endif /* OPENOCD_TARGET_CORTEX_A_H */