aboutsummaryrefslogtreecommitdiff
path: root/src/target/xscale.c
diff options
context:
space:
mode:
authorMarc Schink <openocd-dev@marcschink.de>2015-10-04 17:18:40 +0200
committerAndreas Fritiofson <andreas.fritiofson@gmail.com>2016-02-29 21:04:47 +0000
commit73b676c2fdedcb913f1c20be7de99ea0a94b11cc (patch)
tree1b83325ff1fe0aef54d659c8b83378784347919a /src/target/xscale.c
parent7c957b601f7aeabc537519597057e63f2ae60320 (diff)
downloadriscv-openocd-73b676c2fdedcb913f1c20be7de99ea0a94b11cc.zip
riscv-openocd-73b676c2fdedcb913f1c20be7de99ea0a94b11cc.tar.gz
riscv-openocd-73b676c2fdedcb913f1c20be7de99ea0a94b11cc.tar.bz2
helper/fileio: Remove nested struct
Change-Id: I1a3afbddcf950689da58e0df8850a05f558d7879 Signed-off-by: Marc Schink <openocd-dev@marcschink.de> Reviewed-on: http://openocd.zylin.com/3222 Tested-by: jenkins Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
Diffstat (limited to 'src/target/xscale.c')
-rw-r--r--src/target/xscale.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/target/xscale.c b/src/target/xscale.c
index f9962cf..8799e5c 100644
--- a/src/target/xscale.c
+++ b/src/target/xscale.c
@@ -3425,7 +3425,7 @@ COMMAND_HANDLER(xscale_handle_dump_trace_command)
struct target *target = get_current_target(CMD_CTX);
struct xscale_common *xscale = target_to_xscale(target);
struct xscale_trace_data *trace_data;
- struct fileio file;
+ struct fileio *file;
int retval;
retval = xscale_verify_pointer(CMD_CTX, xscale);
@@ -3453,19 +3453,19 @@ COMMAND_HANDLER(xscale_handle_dump_trace_command)
while (trace_data) {
int i;
- fileio_write_u32(&file, trace_data->chkpt0);
- fileio_write_u32(&file, trace_data->chkpt1);
- fileio_write_u32(&file, trace_data->last_instruction);
- fileio_write_u32(&file, trace_data->depth);
+ fileio_write_u32(file, trace_data->chkpt0);
+ fileio_write_u32(file, trace_data->chkpt1);
+ fileio_write_u32(file, trace_data->last_instruction);
+ fileio_write_u32(file, trace_data->depth);
for (i = 0; i < trace_data->depth; i++)
- fileio_write_u32(&file, trace_data->entries[i].data |
+ fileio_write_u32(file, trace_data->entries[i].data |
((trace_data->entries[i].type & 0xffff) << 16));
trace_data = trace_data->next;
}
- fileio_close(&file);
+ fileio_close(file);
return ERROR_OK;
}