summaryrefslogtreecommitdiff
path: root/src/target
diff options
context:
space:
mode:
authorZachary T Welch <zw@superlucidity.net>2009-11-13 08:45:40 -0800
committerZachary T Welch <zw@superlucidity.net>2009-11-13 11:58:12 -0800
commit18475360b253e52eae7d070421523d5d7636383d (patch)
tree6292fd53ba62933ac5a31e2ff8c5e02e0f18f6e7 /src/target
parent1f87cf4e804812c81279cc7bcb0fcb86aa2bf48f (diff)
downloadopenocd_libswd-18475360b253e52eae7d070421523d5d7636383d.tar.gz
openocd_libswd-18475360b253e52eae7d070421523d5d7636383d.tar.bz2
openocd_libswd-18475360b253e52eae7d070421523d5d7636383d.tar.xz
openocd_libswd-18475360b253e52eae7d070421523d5d7636383d.zip
xscale_reg_t -> struct xscale_reg
Remove misleading typedef and redundant suffix from struct xscale_reg.
Diffstat (limited to 'src/target')
-rw-r--r--src/target/xscale.c12
-rw-r--r--src/target/xscale.h4
2 files changed, 8 insertions, 8 deletions
diff --git a/src/target/xscale.c b/src/target/xscale.c
index 99453b44..552b2ff1 100644
--- a/src/target/xscale.c
+++ b/src/target/xscale.c
@@ -106,7 +106,7 @@ static char *const xscale_reg_list[] =
"XSCALE_TXRXCTRL",
};
-static const xscale_reg_t xscale_reg_arch_info[] =
+static const struct xscale_reg xscale_reg_arch_info[] =
{
{XSCALE_MAINID, NULL},
{XSCALE_CACHETYPE, NULL},
@@ -2365,7 +2365,7 @@ static int xscale_remove_watchpoint(struct target_s *target, struct watchpoint *
static int xscale_get_reg(reg_t *reg)
{
- xscale_reg_t *arch_info = reg->arch_info;
+ struct xscale_reg *arch_info = reg->arch_info;
target_t *target = arch_info->target;
struct xscale_common *xscale = target_to_xscale(target);
@@ -2410,7 +2410,7 @@ static int xscale_get_reg(reg_t *reg)
static int xscale_set_reg(reg_t *reg, uint8_t* buf)
{
- xscale_reg_t *arch_info = reg->arch_info;
+ struct xscale_reg *arch_info = reg->arch_info;
target_t *target = arch_info->target;
struct xscale_common *xscale = target_to_xscale(target);
uint32_t value = buf_get_u32(buf, 0, 32);
@@ -2456,7 +2456,7 @@ static int xscale_write_dcsr_sw(target_t *target, uint32_t value)
{
struct xscale_common *xscale = target_to_xscale(target);
reg_t *dcsr = &xscale->reg_cache->reg_list[XSCALE_DCSR];
- xscale_reg_t *dcsr_arch_info = dcsr->arch_info;
+ struct xscale_reg *dcsr_arch_info = dcsr->arch_info;
/* send CP write request (command 0x41) */
xscale_send_u32(target, 0x41);
@@ -2822,9 +2822,9 @@ static void xscale_build_reg_cache(target_t *target)
struct xscale_common *xscale = target_to_xscale(target);
struct armv4_5_common_s *armv4_5 = &xscale->armv4_5_common;
struct reg_cache **cache_p = register_get_last_cache_p(&target->reg_cache);
- xscale_reg_t *arch_info = malloc(sizeof(xscale_reg_arch_info));
+ struct xscale_reg *arch_info = malloc(sizeof(xscale_reg_arch_info));
int i;
- int num_regs = sizeof(xscale_reg_arch_info) / sizeof(xscale_reg_t);
+ int num_regs = sizeof(xscale_reg_arch_info) / sizeof(struct xscale_reg);
(*cache_p) = armv4_5_build_reg_cache(target, armv4_5);
armv4_5->core_cache = (*cache_p);
diff --git a/src/target/xscale.h b/src/target/xscale.h
index 63655ffb..6fb0bf51 100644
--- a/src/target/xscale.h
+++ b/src/target/xscale.h
@@ -138,11 +138,11 @@ target_to_xscale(struct target_s *target)
armv4_5_common);
}
-typedef struct xscale_reg_s
+struct xscale_reg
{
int dbg_handler_number;
target_t *target;
-} xscale_reg_t;
+};
enum
{