This is an automated email from Gerrit.

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

-- gerrit

commit 868d926ce1e84b24d323deff0506ff143eacef40
Author: Kamal Dasu <[email protected]>
Date:   Mon Dec 10 17:56:15 2012 -0500

    mips_m4k: Fixed mips_m4k_resume code for smp targets
    
    Fix for bug introduced in in mips smp support code
    in the  resume logic that is checking for wrong return
    value.
    
    Change-Id: Ice3e0069f936b556fecc338ccc12ddba38deeaf6
    Signed-off-by: Kamal Dasu <[email protected]>

diff --git a/src/target/mips_m4k.c b/src/target/mips_m4k.c
index 6ffa61e..fb4c376 100644
--- a/src/target/mips_m4k.c
+++ b/src/target/mips_m4k.c
@@ -503,7 +503,7 @@ static int mips_m4k_resume(struct target *target, int 
current,
                                handle_breakpoints,
                                debug_execution);
 
-       if (retval != ERROR_OK && target->smp) {
+       if (retval == ERROR_OK && target->smp) {
                target->gdb_service->core[0] = -1;
                retval = mips_m4k_restore_smp(target, address, 
handle_breakpoints);
        }

-- 

------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to