diff options
author | Spencer Oliver <spen@spen-soft.co.uk> | 2012-02-21 10:13:21 +0000 |
---|---|---|
committer | Andreas Fritiofson <andreas.fritiofson@gmail.com> | 2012-02-26 01:14:39 +0000 |
commit | 5793056d96fd88845cde0d107c002a5fce413909 (patch) | |
tree | 1baf2d9979ea3305d123f3de5cffbd7731cf1503 /src | |
parent | d431af34fe0a9695397fb76536a4ac2dbdac126f (diff) |
jtag: use correct tap -ignore-version mask
when -ignore-version is used we should mask of the upper 4bits not 8bits.
Change-Id: I9ffe24c2aeeb414677357a647609fdf018890194
Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk>
Reviewed-on: http://openocd.zylin.com/473
Tested-by: jenkins
Diffstat (limited to 'src')
-rw-r--r-- | src/jtag/core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/jtag/core.c b/src/jtag/core.c index 6de168e6..a36345b7 100644 --- a/src/jtag/core.c +++ b/src/jtag/core.c @@ -958,8 +958,8 @@ static bool jtag_examine_chain_match_tap(const struct jtag_tap *tap) if (0 == tap->expected_ids_cnt && !idcode) return true; - /* optionally ignore the JTAG version field */ - uint32_t mask = tap->ignore_version ? ~(0xff << 24) : ~0; + /* optionally ignore the JTAG version field - bits 28-31 of IDCODE */ + uint32_t mask = tap->ignore_version ? ~(0xf << 28) : ~0; idcode &= mask; |