X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=src%2Ftarget%2Fcortex_m3.h;h=96264678e53ebf0f696d54aab88091c8255e337d;hb=93459582fd340e4f63efed0fab9abd49a2cb6373;hp=5b1d5eaea38b718f8d6e7adb7498b45d1ec975fe;hpb=056fcdb540f0ab9a404f3b5de72fd707eb146603;p=openocd.git diff --git a/src/target/cortex_m3.h b/src/target/cortex_m3.h index 5b1d5eaea3..96264678e5 100644 --- a/src/target/cortex_m3.h +++ b/src/target/cortex_m3.h @@ -136,7 +136,7 @@ typedef struct cortex_m3_dwt_comparator_s uint32_t dwt_comparator_address; } cortex_m3_dwt_comparator_t; -typedef struct cortex_m3_common_s +struct cortex_m3_common { int common_magic; struct arm_jtag jtag_info; @@ -158,16 +158,16 @@ typedef struct cortex_m3_common_s int dwt_num_comp; int dwt_comp_available; cortex_m3_dwt_comparator_t *dwt_comparator_list; - struct reg_cache_s *dwt_cache; + struct reg_cache *dwt_cache; - armv7m_common_t armv7m; -} cortex_m3_common_t; + struct armv7m_common armv7m; +}; -static inline struct cortex_m3_common_s * +static inline struct cortex_m3_common * target_to_cm3(struct target_s *target) { return container_of(target->arch_info, - struct cortex_m3_common_s, armv7m); + struct cortex_m3_common, armv7m); } #endif /* CORTEX_M3_H */