This is an automated email from Gerrit.

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

-- gerrit

commit f7c1fe96b53d7578deb45275c77e34abae4b9d2f
Author: Piotr Kasprzyk <[email protected]>
Date:   Sat Dec 8 18:02:11 2018 +0100

    Include start-of-region address
    
    When $ADDRESS == $BASE that address used to be excluded.
    
    After this commit $ADDRESS == $BASE is within the range.
    
    Now the rule for "iswithin" is:
    $BASE <= $ADDRESS < ($BASE + $LEN)
    
    Thanks to Antonio Borneo <[email protected]> for noticing this.
    
    Change-Id: I74373c6010e069372d886fa7ecd8120892616834
    Signed-off-by: Piotr Kasprzyk <[email protected]>

diff --git a/tcl/memory.tcl b/tcl/memory.tcl
index a7f5b9a..3066c11 100644
--- a/tcl/memory.tcl
+++ b/tcl/memory.tcl
@@ -58,7 +58,7 @@ set ACCESS_WIDTH_ANY  [expr $ACCESS_WIDTH_8 + 
$ACCESS_WIDTH_16 + $ACCESS_WIDTH_3
 set UNKNOWN(0,ACCESS_WIDTH) $ACCESS_WIDTH_NONE
 
 proc iswithin { ADDRESS BASE LEN } {
-    return [expr ((($ADDRESS - $BASE) > 0) && (($BASE + $LEN - $ADDRESS) > 0))]
+    return [expr ((($ADDRESS - $BASE) >= 0) && (($BASE + $LEN - $ADDRESS) > 
0))]
 }
 
 proc address_info { ADDRESS } {

-- 


_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to