summaryrefslogtreecommitdiff
path: root/src/target/etm.c
diff options
context:
space:
mode:
authordrath <drath@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2007-06-28 10:32:58 +0000
committerdrath <drath@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2007-06-28 10:32:58 +0000
commit32c6d70f6acd41dd1af5ea73051dd6c8a46eac14 (patch)
tree7e9cf887c56d41c12cc894f95481c7aa85ddb73e /src/target/etm.c
parent8c290412d28f9eef568dac0cfc20ccd4a9eca4d5 (diff)
downloadopenocd_libswd-32c6d70f6acd41dd1af5ea73051dd6c8a46eac14.tar.gz
openocd_libswd-32c6d70f6acd41dd1af5ea73051dd6c8a46eac14.tar.bz2
openocd_libswd-32c6d70f6acd41dd1af5ea73051dd6c8a46eac14.tar.xz
openocd_libswd-32c6d70f6acd41dd1af5ea73051dd6c8a46eac14.zip
- fixed endianness helper macros (thanks to obilix and wiml for finding and fixing this bug)
- added declarations for 32bit fileio access functions (network byte order) - fixed bug in etm trace dump file handling - added XScale trace buffer decoding - fixed arm_simulator ERROR numbers (-7xx used twice) - fixed minor bug in debug output in stellaris.c git-svn-id: svn://svn.berlios.de/openocd/trunk@178 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/target/etm.c')
-rw-r--r--src/target/etm.c10
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);