This is an automated email from Gerrit.

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

-- gerrit

commit c8eb3e298c865972d0fa7feeb74784ca3f06556c
Author: Salvador <[email protected]>
Date:   Wed May 9 18:29:21 2012 +0200

    Speed up Mips32 verify_image
    
    Return ERROR_FAIL if parameter count is less than 512
    in mips32_checksum_memory() to force target_checksum_memory()
    to use the default method.
    Expected speed up near 3x.
    
    Change-Id: I5db027955907fe12def4402822257162db73298d
    Signed-off-by: Salvador <[email protected]>

diff --git a/src/target/mips32.c b/src/target/mips32.c
index ab39e6e..59dd974 100644
--- a/src/target/mips32.c
+++ b/src/target/mips32.c
@@ -605,6 +605,9 @@ int mips32_checksum_memory(struct target *target, uint32_t 
address,
                0x7000003F,             /* sdbbp */
        };
 
+       if (count < 512) /*Please use the alternate method*/
+               return ERROR_FAIL;
+
        /* make sure we have a working area */
        if (target_alloc_working_area(target, sizeof(mips_crc_code), 
&crc_algorithm) != ERROR_OK)
                return ERROR_TARGET_RESOURCE_NOT_AVAILABLE;

-- 

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to