summaryrefslogtreecommitdiff
path: root/src/target
diff options
context:
space:
mode:
authorZachary T Welch <zw@superlucidity.net>2009-11-13 09:10:47 -0800
committerZachary T Welch <zw@superlucidity.net>2009-11-13 11:58:13 -0800
commite76d085603c36efddd9b38cc7383f86ee399177c (patch)
tree66fd5dbf3903c623f808e3b7235e8befe55f81e4 /src/target
parentabd7b404086d3c63b163a5ffa786f3538714b7d9 (diff)
downloadopenocd_libswd-e76d085603c36efddd9b38cc7383f86ee399177c.tar.gz
openocd_libswd-e76d085603c36efddd9b38cc7383f86ee399177c.tar.bz2
openocd_libswd-e76d085603c36efddd9b38cc7383f86ee399177c.tar.xz
openocd_libswd-e76d085603c36efddd9b38cc7383f86ee399177c.zip
xscale_trace_entry_t -> struct xscale_trace_entry
Remove misleading typedef and redundant suffix from struct xscale_trace_entry.
Diffstat (limited to 'src/target')
-rw-r--r--src/target/xscale.c2
-rw-r--r--src/target/xscale.h6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/target/xscale.c b/src/target/xscale.c
index 424259bd..4439b0e2 100644
--- a/src/target/xscale.c
+++ b/src/target/xscale.c
@@ -2534,7 +2534,7 @@ static int xscale_read_trace(target_t *target)
(*trace_data_p)->chkpt0 = trace_buffer[256];
(*trace_data_p)->chkpt1 = trace_buffer[257];
(*trace_data_p)->last_instruction = buf_get_u32(armv4_5->core_cache->reg_list[15].value, 0, 32);
- (*trace_data_p)->entries = malloc(sizeof(xscale_trace_entry_t) * (256 - j));
+ (*trace_data_p)->entries = malloc(sizeof(struct xscale_trace_entry) * (256 - j));
(*trace_data_p)->depth = 256 - j;
for (i = j; i < 256; i++)
diff --git a/src/target/xscale.h b/src/target/xscale.h
index 6fb0bf51..31ab281f 100644
--- a/src/target/xscale.h
+++ b/src/target/xscale.h
@@ -50,15 +50,15 @@ enum xscale_trace_entry_type
XSCALE_TRACE_ADDRESS = 0x1,
};
-typedef struct xscale_trace_entry_s
+struct xscale_trace_entry
{
uint8_t data;
enum xscale_trace_entry_type type;
-} xscale_trace_entry_t;
+};
struct xscale_trace_data
{
- xscale_trace_entry_t *entries;
+ struct xscale_trace_entry *entries;
int depth;
uint32_t chkpt0;
uint32_t chkpt1;