diff options
author | Zachary T Welch <zw@superlucidity.net> | 2009-11-13 09:17:08 -0800 |
---|---|---|
committer | Zachary T Welch <zw@superlucidity.net> | 2009-11-13 11:58:13 -0800 |
commit | 42fb6b88764fb39fd07726d7bb447a79c3951aa4 (patch) | |
tree | 2fee231ae68ef936afc74e5bca97ada735789da8 | |
parent | 53c05c8b1d5718b2acf5dbe0eb517dd427340041 (diff) | |
download | openocd+libswd-42fb6b88764fb39fd07726d7bb447a79c3951aa4.tar.gz openocd+libswd-42fb6b88764fb39fd07726d7bb447a79c3951aa4.tar.bz2 openocd+libswd-42fb6b88764fb39fd07726d7bb447a79c3951aa4.tar.xz openocd+libswd-42fb6b88764fb39fd07726d7bb447a79c3951aa4.zip |
cortex_a8_brp_t -> struct cortex_a8_brp
Remove misleading typedef and redundant suffix from struct cortex_a8_brp.
-rw-r--r-- | src/target/cortex_a8.c | 6 | ||||
-rw-r--r-- | src/target/cortex_a8.h | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/target/cortex_a8.c b/src/target/cortex_a8.c index 905860f5..a44bb92e 100644 --- a/src/target/cortex_a8.c +++ b/src/target/cortex_a8.c @@ -969,7 +969,7 @@ static int cortex_a8_set_breakpoint(struct target_s *target, uint8_t byte_addr_select = 0x0F; struct cortex_a8_common *cortex_a8 = target_to_cortex_a8(target); struct armv7a_common *armv7a = &cortex_a8->armv7a_common; - cortex_a8_brp_t * brp_list = cortex_a8->brp_list; + struct cortex_a8_brp * brp_list = cortex_a8->brp_list; if (breakpoint->set) { @@ -1040,7 +1040,7 @@ static int cortex_a8_unset_breakpoint(struct target_s *target, struct breakpoint int retval; struct cortex_a8_common *cortex_a8 = target_to_cortex_a8(target); struct armv7a_common *armv7a = &cortex_a8->armv7a_common; - cortex_a8_brp_t * brp_list = cortex_a8->brp_list; + struct cortex_a8_brp * brp_list = cortex_a8->brp_list; if (!breakpoint->set) { @@ -1392,7 +1392,7 @@ static int cortex_a8_examine(struct target_s *target) cortex_a8->brp_num = ((didr >> 24) & 0x0F) + 1; cortex_a8->brp_num_context = ((didr >> 20) & 0x0F) + 1; cortex_a8->brp_num_available = cortex_a8->brp_num; - cortex_a8->brp_list = calloc(cortex_a8->brp_num, sizeof(cortex_a8_brp_t)); + cortex_a8->brp_list = calloc(cortex_a8->brp_num, sizeof(struct cortex_a8_brp)); // cortex_a8->brb_enabled = ????; for (i = 0; i < cortex_a8->brp_num; i++) { diff --git a/src/target/cortex_a8.h b/src/target/cortex_a8.h index 131cddbf..87288422 100644 --- a/src/target/cortex_a8.h +++ b/src/target/cortex_a8.h @@ -82,14 +82,14 @@ extern char* cortex_a8_state_strings[]; #define DSCR_DTR_TX_FULL 29 #define DSCR_DTR_RX_FULL 30 -typedef struct cortex_a8_brp_s +struct cortex_a8_brp { int used; int type; uint32_t value; uint32_t control; uint8_t BRPn; -} cortex_a8_brp_t; +}; typedef struct cortex_a8_wrp_s { @@ -119,7 +119,7 @@ struct cortex_a8_common int brp_num; int brp_num_available; // int brp_enabled; - cortex_a8_brp_t *brp_list; + struct cortex_a8_brp *brp_list; /* Watchpoint register pairs */ int wrp_num; |