summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/target/cortex_a8.c2
-rw-r--r--src/target/cortex_a8.h6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/target/cortex_a8.c b/src/target/cortex_a8.c
index a44bb92e..82d0b281 100644
--- a/src/target/cortex_a8.c
+++ b/src/target/cortex_a8.c
@@ -1409,7 +1409,7 @@ static int cortex_a8_examine(struct target_s *target)
/* Setup Watchpoint Register Pairs */
cortex_a8->wrp_num = ((didr >> 28) & 0x0F) + 1;
cortex_a8->wrp_num_available = cortex_a8->wrp_num;
- cortex_a8->wrp_list = calloc(cortex_a8->wrp_num, sizeof(cortex_a8_wrp_t));
+ cortex_a8->wrp_list = calloc(cortex_a8->wrp_num, sizeof(struct cortex_a8_wrp));
for (i = 0; i < cortex_a8->wrp_num; i++)
{
cortex_a8->wrp_list[i].used = 0;
diff --git a/src/target/cortex_a8.h b/src/target/cortex_a8.h
index 87288422..e3b99ee4 100644
--- a/src/target/cortex_a8.h
+++ b/src/target/cortex_a8.h
@@ -91,14 +91,14 @@ struct cortex_a8_brp
uint8_t BRPn;
};
-typedef struct cortex_a8_wrp_s
+struct cortex_a8_wrp
{
int used;
int type;
uint32_t value;
uint32_t control;
uint8_t WRPn;
-} cortex_a8_wrp_t;
+};
struct cortex_a8_common
{
@@ -124,7 +124,7 @@ struct cortex_a8_common
/* Watchpoint register pairs */
int wrp_num;
int wrp_num_available;
- cortex_a8_wrp_t *wrp_list;
+ struct cortex_a8_wrp *wrp_list;
/* Interrupts */
int intlinesnum;