diff options
author | Andreas Fritiofson <andreas.fritiofson@gmail.com> | 2014-02-16 09:29:01 +0100 |
---|---|---|
committer | Andreas Fritiofson <andreas.fritiofson@gmail.com> | 2014-06-28 09:26:12 +0000 |
commit | fd909a5e3dc6d7434bd68bea5c89ffed0f18b586 (patch) | |
tree | ad71970c66e7f05f5362e4e7bd57d115b705c458 /src/target/arm_adi_v5.c | |
parent | 9ec211de1ce1f87f0aa424d44fc5b6956a4eb72a (diff) | |
download | riscv-openocd-fd909a5e3dc6d7434bd68bea5c89ffed0f18b586.zip riscv-openocd-fd909a5e3dc6d7434bd68bea5c89ffed0f18b586.tar.gz riscv-openocd-fd909a5e3dc6d7434bd68bea5c89ffed0f18b586.tar.bz2 |
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>
Diffstat (limited to 'src/target/arm_adi_v5.c')
-rw-r--r-- | src/target/arm_adi_v5.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/target/arm_adi_v5.c b/src/target/arm_adi_v5.c index 2e56396..a18101d 100644 --- a/src/target/arm_adi_v5.c +++ b/src/target/arm_adi_v5.c @@ -661,6 +661,7 @@ int ahbap_debugport_init(struct adiv5_dap *dap) */ dap->ap_current = !0; dap_ap_select(dap, 0); + dap->last_read = NULL; /* DP initialization */ |