Just a cosmetic refactoring.
Change-Id: I7fbc05324e346fafc98d1b42691d33d3d8fbd04e
Signed-off-by: Tomas Vanek <vanekt@fbl.cz>
Reviewed-on: https://review.openocd.org/c/openocd/+/7003
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
Tested-by: jenkins
struct aarch64_common {
unsigned int common_magic;
+ struct armv8_common armv8_common;
+
/* Context information */
uint32_t system_control_reg;
uint32_t system_control_reg_curr;
int wp_num_available;
struct aarch64_brp *wp_list;
- struct armv8_common armv8_common;
-
enum aarch64_isrmasking_mode isrmasking_mode;
};
struct cortex_a_common {
unsigned int common_magic;
+ struct armv7a_common armv7a_common;
+
/* Context information */
uint32_t cpudbg_dscr;
enum cortex_a_isrmasking_mode isrmasking_mode;
enum cortex_a_dacrfixup_mode dacrfixup_mode;
-
- struct armv7a_common armv7a_common;
-
};
static inline struct cortex_a_common *
struct cortex_m_common {
unsigned int common_magic;
+ struct armv7m_common armv7m;
+
/* Context information */
uint32_t dcb_dhcsr;
uint32_t dcb_dhcsr_cumulated_sticky;
enum cortex_m_isrmasking_mode isrmasking_mode;
const struct cortex_m_part_info *core_info;
- struct armv7m_common armv7m;
bool slow_register_read; /* A register has not been ready, poll S_REGRDY */
struct mips_m4k_common {
unsigned int common_magic;
- bool is_pic32mx;
struct mips32_common mips32;
+
+ bool is_pic32mx;
};
static inline struct mips_m4k_common *