X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=src%2Ftarget%2Fcortex_a.h;h=ff0343208e9dc053267e70d73e9fe7fa990e1f34;hb=a51ab8ddf63a0d60eaaf3b8f3eedcada1e773c20;hp=d33188ffcff98eb8557f696d19c556e90c7f1e2c;hpb=dc574aa1da291405c6778383c1ad3b252602aee7;p=openocd.git diff --git a/src/target/cortex_a.h b/src/target/cortex_a.h index d33188ffcf..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" @@ -60,6 +58,11 @@ enum cortex_a_isrmasking_mode { 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; @@ -78,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; @@ -91,11 +97,10 @@ 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; @@ -107,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 */