xscale_trace_entry_t -> struct xscale_trace_entry

Remove misleading typedef and redundant suffix from struct xscale_trace_entry.
This commit is contained in:
Zachary T Welch 2009-11-13 09:10:47 -08:00
parent abd7b40408
commit e76d085603
2 changed files with 4 additions and 4 deletions

View File

@ -2534,7 +2534,7 @@ static int xscale_read_trace(target_t *target)
(*trace_data_p)->chkpt0 = trace_buffer[256]; (*trace_data_p)->chkpt0 = trace_buffer[256];
(*trace_data_p)->chkpt1 = trace_buffer[257]; (*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)->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; (*trace_data_p)->depth = 256 - j;
for (i = j; i < 256; i++) for (i = j; i < 256; i++)

View File

@ -50,15 +50,15 @@ enum xscale_trace_entry_type
XSCALE_TRACE_ADDRESS = 0x1, XSCALE_TRACE_ADDRESS = 0x1,
}; };
typedef struct xscale_trace_entry_s struct xscale_trace_entry
{ {
uint8_t data; uint8_t data;
enum xscale_trace_entry_type type; enum xscale_trace_entry_type type;
} xscale_trace_entry_t; };
struct xscale_trace_data struct xscale_trace_data
{ {
xscale_trace_entry_t *entries; struct xscale_trace_entry *entries;
int depth; int depth;
uint32_t chkpt0; uint32_t chkpt0;
uint32_t chkpt1; uint32_t chkpt1;