X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=src%2Ftarget%2Fcortex_a.h;h=e736857a1fce91818b6c94bf6dc73095a92d53d6;hp=b49e670f21eddcae67793f2e5842c9f62c2d2cb9;hb=b48d1f66378fac886d5bc32d7302da48c89d8a75;hpb=dec80e1cffa162ba0e1cd8e6ee66c7784fe79b87 diff --git a/src/target/cortex_a.h b/src/target/cortex_a.h index b49e670f21..e736857a1f 100644 --- a/src/target/cortex_a.h +++ b/src/target/cortex_a.h @@ -63,6 +63,10 @@ struct cortex_a8_common /* Saved cp15 registers */ uint32_t cp15_control_reg; + /* latest cp15 register value written and cpsr processor mode */ + uint32_t cp15_control_reg_curr; + enum arm_mode curr_mode; + /* Breakpoint register pairs */ int brp_num_context; @@ -73,17 +77,15 @@ struct cortex_a8_common /* Use cortex_a8_read_regs_through_mem for fast register reads */ int fast_reg_read; - /* Flag that helps to resolve what ttb to use: user or kernel */ - int current_address_mode; - struct armv7a_common armv7a_common; + }; static inline struct cortex_a8_common * target_to_cortex_a8(struct target *target) { return container_of(target->arch_info, struct cortex_a8_common, - armv7a_common.armv4_5_common); + armv7a_common.arm); } #endif /* CORTEX_A8_H */