diff options
Diffstat (limited to 'src/target/etm.c')
-rw-r--r-- | src/target/etm.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/target/etm.c b/src/target/etm.c index b4c20750..367eafff 100644 --- a/src/target/etm.c +++ b/src/target/etm.c @@ -1502,9 +1502,13 @@ int handle_etm_load_command(struct command_context_s *cmd_ctx, char *cmd, char * for (i = 0; i < etm_ctx->trace_depth; i++) { - fileio_read_u32(&file, &etm_ctx->trace_data[i].pipestat); - fileio_read_u32(&file, &etm_ctx->trace_data[i].packet); - fileio_read_u32(&file, &etm_ctx->trace_data[i].flags); + u32 pipestat, packet, flags; + fileio_read_u32(&file, &pipestat); + fileio_read_u32(&file, &packet); + fileio_read_u32(&file, &flags); + etm_ctx->trace_data[i].pipestat = pipestat & 0xff; + etm_ctx->trace_data[i].packet = packet & 0xffff; + etm_ctx->trace_data[i].flags = flags; } fileio_close(&file); |