diff options
author | Zachary T Welch <zw@superlucidity.net> | 2009-11-13 09:55:49 -0800 |
---|---|---|
committer | Zachary T Welch <zw@superlucidity.net> | 2009-11-13 11:58:13 -0800 |
commit | d0dee7ccafcf87259fadf6c5de43df8583b0e885 (patch) | |
tree | 19cdaeffd3bbd10f4d5c740b8a9b34693d967de3 /src/target/cortex_m3.c | |
parent | ac927559c3ce5406adac34b9d4ca4ecb37a48181 (diff) |
reg_t -> struct reg
Remove misleading typedef and redundant suffix from struct reg.
Diffstat (limited to 'src/target/cortex_m3.c')
-rw-r--r-- | src/target/cortex_m3.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/target/cortex_m3.c b/src/target/cortex_m3.c index 9f9016d2..58c3d8f7 100644 --- a/src/target/cortex_m3.c +++ b/src/target/cortex_m3.c @@ -53,7 +53,7 @@ static int cortex_m3_store_core_reg_u32(target_t *target, #ifdef ARMV7_GDB_HACKS extern uint8_t armv7m_gdb_dummy_cpsr_value[]; -extern reg_t armv7m_gdb_dummy_cpsr_reg; +extern struct reg armv7m_gdb_dummy_cpsr_reg; #endif static int cortexm3_dap_read_coreregister_u32(struct swjdp_common *swjdp, @@ -1453,14 +1453,14 @@ struct dwt_reg_state { uint32_t value; /* scratch/cache */ }; -static int cortex_m3_dwt_get_reg(struct reg_s *reg) +static int cortex_m3_dwt_get_reg(struct reg *reg) { struct dwt_reg_state *state = reg->arch_info; return target_read_u32(state->target, state->addr, &state->value); } -static int cortex_m3_dwt_set_reg(struct reg_s *reg, uint8_t *buf) +static int cortex_m3_dwt_set_reg(struct reg *reg, uint8_t *buf) { struct dwt_reg_state *state = reg->arch_info; @@ -1495,7 +1495,7 @@ static struct dwt_reg dwt_comp[] = { static int dwt_reg_type = -1; static void -cortex_m3_dwt_addreg(struct target_s *t, struct reg_s *r, struct dwt_reg *d) +cortex_m3_dwt_addreg(struct target_s *t, struct reg *r, struct dwt_reg *d) { struct dwt_reg_state *state; |