summaryrefslogtreecommitdiff
path: root/src/pld
diff options
context:
space:
mode:
authordrath <drath@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2007-03-26 21:47:26 +0000
committerdrath <drath@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2007-03-26 21:47:26 +0000
commit5ed126c4f90948fbf53d186dc4ef49018fb5ecfc (patch)
tree40a1444d10e0413a202440b595b3a707df22a513 /src/pld
parent9b13ffe4e2edc1eabdf52c2d117396b1b21de968 (diff)
downloadopenocd+libswd-5ed126c4f90948fbf53d186dc4ef49018fb5ecfc.tar.gz
openocd+libswd-5ed126c4f90948fbf53d186dc4ef49018fb5ecfc.tar.bz2
openocd+libswd-5ed126c4f90948fbf53d186dc4ef49018fb5ecfc.tar.xz
openocd+libswd-5ed126c4f90948fbf53d186dc4ef49018fb5ecfc.zip
- fixed arm926 cp15 command bug (thanks to Vincent Palatin for this patch)
- fixed compiler warnings throughout the code (thanks to Vincent Palatin for this patch) - added support for accessing ETB (embedded trace buffer) registers git-svn-id: svn://svn.berlios.de/openocd/trunk@134 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/pld')
-rw-r--r--src/pld/xilinx_bit.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/pld/xilinx_bit.c b/src/pld/xilinx_bit.c
index 7bf72b2e..3c99db0d 100644
--- a/src/pld/xilinx_bit.c
+++ b/src/pld/xilinx_bit.c
@@ -67,8 +67,7 @@ int read_section(FILE *input_file, int length_size, char section, u32 *buffer_le
if (length_size == 4)
length = be_to_h_u32(length_buffer);
-
- if (length_size == 2)
+ else /* (length_size == 2) */
length = be_to_h_u16(length_buffer);
if (buffer_length)