summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZachary T Welch <zw@superlucidity.net>2009-11-13 08:41:46 -0800
committerZachary T Welch <zw@superlucidity.net>2009-11-13 11:58:10 -0800
commit94f5ed90f1832e81803713f4364de586a69247d4 (patch)
tree7e8ea8895a5f976c8bb721c7bfd497129afb2038
parent5e43565ab543b1ceff4cc8030434a54ac28dd875 (diff)
downloadopenocd+libswd-94f5ed90f1832e81803713f4364de586a69247d4.tar.gz
openocd+libswd-94f5ed90f1832e81803713f4364de586a69247d4.tar.bz2
openocd+libswd-94f5ed90f1832e81803713f4364de586a69247d4.tar.xz
openocd+libswd-94f5ed90f1832e81803713f4364de586a69247d4.zip
armv7m_core_reg_t -> struct armv7m_core_reg
Remove misleading typedef and redundant suffix from struct armv7m_core_reg.
-rw-r--r--src/target/armv7m.c10
-rw-r--r--src/target/armv7m.h4
2 files changed, 7 insertions, 7 deletions
diff --git a/src/target/armv7m.c b/src/target/armv7m.c
index 3ce6d7a8..9319bf25 100644
--- a/src/target/armv7m.c
+++ b/src/target/armv7m.c
@@ -181,7 +181,7 @@ char *armv7m_exception_string(int number)
static int armv7m_get_core_reg(reg_t *reg)
{
int retval;
- armv7m_core_reg_t *armv7m_reg = reg->arch_info;
+ struct armv7m_core_reg *armv7m_reg = reg->arch_info;
target_t *target = armv7m_reg->target;
struct armv7m_common *armv7m = target_to_armv7m(target);
@@ -197,7 +197,7 @@ static int armv7m_get_core_reg(reg_t *reg)
static int armv7m_set_core_reg(reg_t *reg, uint8_t *buf)
{
- armv7m_core_reg_t *armv7m_reg = reg->arch_info;
+ struct armv7m_core_reg *armv7m_reg = reg->arch_info;
target_t *target = armv7m_reg->target;
uint32_t value = buf_get_u32(buf, 0, 32);
@@ -217,7 +217,7 @@ static int armv7m_read_core_reg(struct target_s *target, int num)
{
uint32_t reg_value;
int retval;
- armv7m_core_reg_t * armv7m_core_reg;
+ struct armv7m_core_reg * armv7m_core_reg;
struct armv7m_common *armv7m = target_to_armv7m(target);
if ((num < 0) || (num >= ARMV7M_NUM_REGS))
@@ -236,7 +236,7 @@ static int armv7m_write_core_reg(struct target_s *target, int num)
{
int retval;
uint32_t reg_value;
- armv7m_core_reg_t *armv7m_core_reg;
+ struct armv7m_core_reg *armv7m_core_reg;
struct armv7m_common *armv7m = target_to_armv7m(target);
if ((num < 0) || (num >= ARMV7M_NUM_REGS))
@@ -531,7 +531,7 @@ reg_cache_t *armv7m_build_reg_cache(target_t *target)
reg_cache_t **cache_p = register_get_last_cache_p(&target->reg_cache);
reg_cache_t *cache = malloc(sizeof(reg_cache_t));
reg_t *reg_list = calloc(num_regs, sizeof(reg_t));
- armv7m_core_reg_t *arch_info = calloc(num_regs, sizeof(armv7m_core_reg_t));
+ struct armv7m_core_reg *arch_info = calloc(num_regs, sizeof(struct armv7m_core_reg));
int i;
if (armv7m_core_reg_arch_type == -1)
diff --git a/src/target/armv7m.h b/src/target/armv7m.h
index 6e857ee4..43ec5632 100644
--- a/src/target/armv7m.h
+++ b/src/target/armv7m.h
@@ -126,13 +126,13 @@ struct armv7m_algorithm
enum armv7m_mode core_mode;
};
-typedef struct armv7m_core_reg_s
+struct armv7m_core_reg
{
uint32_t num;
enum armv7m_regtype type;
target_t *target;
struct armv7m_common *armv7m_common;
-} armv7m_core_reg_t;
+};
reg_cache_t *armv7m_build_reg_cache(target_t *target);
enum armv7m_mode armv7m_number_to_mode(int number);