diff options
author | Zachary T Welch <zw@superlucidity.net> | 2009-11-13 08:39:45 -0800 |
---|---|---|
committer | Zachary T Welch <zw@superlucidity.net> | 2009-11-13 11:58:09 -0800 |
commit | 0eae94879d85a7a402c890bda66efdeffde6f1c7 (patch) | |
tree | 4d57f2715258f53af914ee83dfee42e94c06948b | |
parent | b1de5eb9a074b362e953e857c42cac9a9b18b2a3 (diff) | |
download | openocd_libswd-0eae94879d85a7a402c890bda66efdeffde6f1c7.tar.gz openocd_libswd-0eae94879d85a7a402c890bda66efdeffde6f1c7.tar.bz2 openocd_libswd-0eae94879d85a7a402c890bda66efdeffde6f1c7.tar.xz openocd_libswd-0eae94879d85a7a402c890bda66efdeffde6f1c7.zip |
arm11_reg_defs_t -> struct arm11_reg_defs
Remove misleading typedef and redundant suffix from struct arm11_reg_defs.
-rw-r--r-- | src/target/arm11.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/target/arm11.c b/src/target/arm11.c index 2787eca9..75ad15da 100644 --- a/src/target/arm11.c +++ b/src/target/arm11.c @@ -87,16 +87,16 @@ enum arm11_regtype }; -typedef struct arm11_reg_defs_s +struct arm11_reg_defs { char * name; uint32_t num; int gdb_num; enum arm11_regtype type; -} arm11_reg_defs_t; +}; /* update arm11_regcache_ids when changing this */ -static const arm11_reg_defs_t arm11_reg_defs[] = +static const struct arm11_reg_defs arm11_reg_defs[] = { {"r0", 0, 0, ARM11_REGISTER_CORE}, {"r1", 1, 1, ARM11_REGISTER_CORE}, @@ -1907,7 +1907,7 @@ static int arm11_get_reg(reg_t *reg) #if 0 arm11_common_t *arm11 = target->arch_info; - const arm11_reg_defs_t * arm11_reg_info = arm11_reg_defs + ((arm11_reg_state_t *)reg->arch_info)->def_index; + const struct arm11_reg_defs * arm11_reg_info = arm11_reg_defs + ((arm11_reg_state_t *)reg->arch_info)->def_index; #endif return ERROR_OK; @@ -1920,7 +1920,7 @@ static int arm11_set_reg(reg_t *reg, uint8_t *buf) target_t * target = ((arm11_reg_state_t *)reg->arch_info)->target; arm11_common_t *arm11 = target->arch_info; -// const arm11_reg_defs_t * arm11_reg_info = arm11_reg_defs + ((arm11_reg_state_t *)reg->arch_info)->def_index; +// const struct arm11_reg_defs * arm11_reg_info = arm11_reg_defs + ((arm11_reg_state_t *)reg->arch_info)->def_index; arm11->reg_values[((arm11_reg_state_t *)reg->arch_info)->def_index] = buf_get_u32(buf, 0, 32); reg->valid = 1; @@ -1971,7 +1971,7 @@ static int arm11_build_reg_cache(target_t *target) for (i = 0; i < ARM11_REGCACHE_COUNT; i++) { reg_t * r = reg_list + i; - const arm11_reg_defs_t * rd = arm11_reg_defs + i; + const struct arm11_reg_defs * rd = arm11_reg_defs + i; arm11_reg_state_t * rs = arm11_reg_states + i; r->name = rd->name; |