This is an automated email from Gerrit.

Andreas Fritiofson ([email protected]) just uploaded a new patch set 
to Gerrit, which you can find at http://openocd.zylin.com/3217

-- gerrit

commit a91c91738716523d3b09b9f803ca7109232654e7
Author: Andreas Fritiofson <[email protected]>
Date:   Wed Jan 13 20:39:28 2016 +0100

    target: Switch to target_read_buffer() in verify_image fallback
    
    Change-Id: I32ab5417890ee2219902df1529bc220fe353b4c7
    Signed-off-by: Andreas Fritiofson <[email protected]>

diff --git a/src/target/target.c b/src/target/target.c
index 598d7d5..1100a28 100644
--- a/src/target/target.c
+++ b/src/target/target.c
@@ -3360,14 +3360,7 @@ static 
COMMAND_HELPER(handle_verify_image_command_internal, int verify)
 
                                data = malloc(buf_cnt);
 
-                               /* Can we use 32bit word accesses? */
-                               int size = 1;
-                               int count = buf_cnt;
-                               if ((count % 4) == 0) {
-                                       size *= 4;
-                                       count /= 4;
-                               }
-                               retval = target_read_memory(target, 
image.sections[i].base_address, size, count, data);
+                               retval = target_read_buffer(target, 
image.sections[i].base_address, buf_cnt, data);
                                if (retval == ERROR_OK) {
                                        uint32_t t;
                                        for (t = 0; t < buf_cnt; t++) {

-- 

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to