Restore mwh/mwb functionality.
commitbe74db7341ffe4a2ce345574281f298e190a3e6d
authorAndreas Fritiofson <andreas.fritiofson@gmail.com>
Tue, 17 Sep 2013 20:09:22 +0000 (17 22:09 +0200)
committerAndreas Fritiofson <andreas.fritiofson@gmail.com>
Sat, 21 Sep 2013 19:26:59 +0000 (21 19:26 +0000)
tree9b5a84cf291a3b9c0bfae5f24f0fdccdce25e8f2
parent1304b27d2accf7a761ff3b0c12fd5332b3c0c4da
Restore mwh/mwb functionality.

Half-word and byte writes using mwh/mwb has been completely broken since
bf71e34cbf, because it dispatched all writes, regardless of access size,
to target_write_buffer(), which uses as large accesses as possible.

Partially revert the commit by changing back to the correct write method.

Change-Id: I60731fc576bf4a076a7da02bee7879e121c21d17
Signed-off-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
Reviewed-on: http://openocd.zylin.com/1628
Tested-by: jenkins
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
src/target/target.c