adi_v5_swd: Read RDBUFF once after a sequence of AP reads
authorAndreas Fritiofson <andreas.fritiofson@gmail.com>
Sun, 16 Feb 2014 08:29:01 +0000 (09:29 +0100)
committerAndreas Fritiofson <andreas.fritiofson@gmail.com>
Sat, 28 Jun 2014 09:26:12 +0000 (09:26 +0000)
commitfd909a5e3dc6d7434bd68bea5c89ffed0f18b586
treead71970c66e7f05f5362e4e7bd57d115b705c458
parent9ec211de1ce1f87f0aa424d44fc5b6956a4eb72a
adi_v5_swd: Read RDBUFF once after a sequence of AP reads

Increases performance by a factor of two for long reads.

Change-Id: I81a7a83835058560c6a53a43c3cc991100f01766
Signed-off-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
Reviewed-on: http://openocd.zylin.com/1954
Tested-by: jenkins
Reviewed-by: Paul Fertser <fercerpav@gmail.com>
src/target/adi_v5_swd.c
src/target/arm_adi_v5.c
src/target/arm_adi_v5.h