diff options
author | drath <drath@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2006-11-22 13:03:10 +0000 |
---|---|---|
committer | drath <drath@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2006-11-22 13:03:10 +0000 |
commit | e9297b40b994f071474210e7d9e224d50e25fcaf (patch) | |
tree | c04957b7721ab6825e73fad0775677643f82fc23 /src/helper | |
parent | 03e8f264f4c66baec9b86778d3488b23e0a8c0b6 (diff) | |
download | openocd+libswd-e9297b40b994f071474210e7d9e224d50e25fcaf.tar.gz openocd+libswd-e9297b40b994f071474210e7d9e224d50e25fcaf.tar.bz2 openocd+libswd-e9297b40b994f071474210e7d9e224d50e25fcaf.tar.xz openocd+libswd-e9297b40b994f071474210e7d9e224d50e25fcaf.zip |
- added a PLD (programmable logic device) subsystem for FPGA, CPLD etc. configuration
- added support for loading .bit files into Xilinx Virtex-II devices
- added support for the Gateworks GW16012 JTAG dongle
- merged CFI fixes from XScale branch
- a few minor fixes
git-svn-id: svn://svn.berlios.de/openocd/trunk@116 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/helper')
-rw-r--r-- | src/helper/binarybuffer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/helper/binarybuffer.c b/src/helper/binarybuffer.c index 6afd6e59..7d41dc73 100644 --- a/src/helper/binarybuffer.c +++ b/src/helper/binarybuffer.c @@ -143,8 +143,8 @@ int buf_cmp_mask(u8 *buf1, u8 *buf2, u8 *mask, int size) /* mask out bits that don't really belong to the buffer if size isn't a multiple of 8 bits */ if ((size % 8) && (i == num_bytes -1 )) { - if (((buf1[i] & ((1 << (size % 8)) - 1)) & ((1 << (size % 8)) - 1)) != - ((buf2[i] & ((1 << (size % 8)) - 1)) & ((1 << (size % 8)) - 1))) + if ((buf1[i] & ((1 << (size % 8)) - 1) & mask[i]) != + (buf2[i] & ((1 << (size % 8)) - 1) & mask[i])) return 1; } else |