diff options
author | drath <drath@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2007-12-16 11:52:50 +0000 |
---|---|---|
committer | drath <drath@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2007-12-16 11:52:50 +0000 |
commit | c8490c2099e645418ac96e7840828826cf1121ac (patch) | |
tree | 5d8c73456f4042790503303710493910a87547ff /src | |
parent | 55bdadcbcd836fb85e0bb0ade32458c148996f58 (diff) | |
download | openocd_libswd-c8490c2099e645418ac96e7840828826cf1121ac.tar.gz openocd_libswd-c8490c2099e645418ac96e7840828826cf1121ac.tar.bz2 openocd_libswd-c8490c2099e645418ac96e7840828826cf1121ac.tar.xz openocd_libswd-c8490c2099e645418ac96e7840828826cf1121ac.zip |
- fixed ETM configuration register decoding
git-svn-id: svn://svn.berlios.de/openocd/trunk@232 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src')
-rw-r--r-- | src/target/etm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/target/etm.c b/src/target/etm.c index 3f7bbbf1..1a20d862 100644 --- a/src/target/etm.c +++ b/src/target/etm.c @@ -1364,8 +1364,8 @@ int handle_etm_info_command(struct command_context_s *cmd_ctx, char *cmd, char * etm_get_reg(etm_config_reg); command_print(cmd_ctx, "pairs of address comparators: %i", buf_get_u32(etm_config_reg->value, 0, 4)); command_print(cmd_ctx, "pairs of data comparators: %i", buf_get_u32(etm_config_reg->value, 4, 4)); - command_print(cmd_ctx, "memory map decoders: %i", buf_get_u32(etm_config_reg->value, 8, 4)); - command_print(cmd_ctx, "number of counters: %i", buf_get_u32(etm_config_reg->value, 12, 4)); + command_print(cmd_ctx, "memory map decoders: %i", buf_get_u32(etm_config_reg->value, 8, 5)); + command_print(cmd_ctx, "number of counters: %i", buf_get_u32(etm_config_reg->value, 13, 3)); command_print(cmd_ctx, "sequencer %spresent", (buf_get_u32(etm_config_reg->value, 16, 1) == 1) ? "" : "not "); command_print(cmd_ctx, "number of ext. inputs: %i", buf_get_u32(etm_config_reg->value, 17, 3)); |