openocd/src
Tim Newsome 19df456a79 Perform small writes before sending OK.
To speed up downloads, OpenOCD sends gdb OK when a write is received,
even before the write has actually occurred. The failure is then
returned for the next write. That leads to the following confusing
behavior:
```
(gdb) p/x *((int*)0xdeadbeef)=8675309
$2 = 0x845fed
(gdb) p/x *((int*)0x80000000)=6874742
Cannot access memory at address 0x80000000
```
While it's actually the first write that failed.

This change hacks around this problem by not sending OK for small writes
(len<8) until the write has actually occurred. This does not impact
download speed, since during downloads (almost) all writes will have
much larger length.

Change-Id: I1f8b9bb19b0707487f840df6871e372e4ba228dd
Signed-off-by: Tim Newsome <tim@sifive.com>
Reviewed-on: http://openocd.zylin.com/3803
Tested-by: jenkins
Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
2016-10-30 20:40:56 +00:00
..
flash flash: nor: lpc2000: handle lpc11xx parts with more than 96k memory 2016-10-30 20:37:29 +00:00
helper helper: Make unhexify() robust on invalid data 2016-10-17 09:28:05 +01:00
jtag helper: Make unhexify() robust on invalid data 2016-10-17 09:28:05 +01:00
pld Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
rtos helper: Make unhexify() robust on invalid data 2016-10-17 09:28:05 +01:00
server Perform small writes before sending OK. 2016-10-30 20:40:56 +00:00
svf Fix usage of timeval_ms() 2016-07-19 10:45:16 +01:00
target flash/nor: Add erased_value to drivers and pass it to targets 2016-10-30 20:30:48 +00:00
transport Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
xsvf Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
hello.c Remove FSF address from GPL notices 2016-05-24 22:30:01 +01:00
hello.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
main.c Remove FSF address from GPL notices 2016-05-24 22:30:01 +01:00
Makefile.am Makefile.am: link libusb-1.0 after libusb-0.1 to fix dependencies 2015-02-04 21:56:45 +00:00
openocd.c Remove FSF address from GPL notices 2016-05-24 22:30:01 +01:00
openocd.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00