- fix warnings during configure cause by ecosboard. default to no, if host cpu isn...
authordrath <drath@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Mon, 17 Mar 2008 21:39:18 +0000 (21:39 +0000)
committerdrath <drath@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Mon, 17 Mar 2008 21:39:18 +0000 (21:39 +0000)
commit87939e553d542ee2ec2b82075798838b77468ead
tree4693b048d0e09e10defc542d70c0909eb5c501ae
parent3b2a068ea997323eb37251b31be8034c57ff9def
- fix warnings during configure cause by ecosboard. default to no, if host cpu isn't arm.
- fix generic bitbang code to allow scans to end in Shift-[ID]R

- several CFI fixes (thanks to Michael Schwingen):
 - buffer overflow when converting target code in cfi_intel_write_block -
   cfi_fix_code_endian needs the number of words, not bytes, as size
   argument.

 - Spansion flash write was completely broken on big-endian targets - I
   borrowed mechanisms from the intel driver, and moved some common code
   into the cfi_command_val helper function. There is still more common code
   that might be cleaned up.

 - the buffer size check in cfi_write was broken for spansion flashes, where
   cfi_write_words is not implemented. cfi_write_words is no only called if
   the flash does have a buffer size >1.

 - "flash info" printed CFI status information for non-CFI flashes, which is
   confusing. It now only prints those when a real CFI flash is detected.

git-svn-id: svn://svn.berlios.de/openocd/trunk@517 b42882b7-edfa-0310-969c-e2dbd0fdcd60
configure.in
src/flash/cfi.c
src/jtag/bitbang.c