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/4798
-- gerrit commit 0c129d7946b6d9ac2697bb42368fdbb965f9552e Author: Piotr Kasprzyk <[email protected]> Date: Sat Dec 8 03:27:51 2018 +0100 Fix wrong end-of-region calculation Correct check for end-of-region is: $BASE + $LEN > $ADDRESS And it is currently (wrongly) calculated as: $ADDRESS > $BASE - $LEN Change-Id: If10bfee19b0c7dbc085731ac1eda943f5d8a36a3 Signed-off-by: Piotr Kasprzyk <[email protected]> diff --git a/tcl/memory.tcl b/tcl/memory.tcl index 83c96d6..a7f5b9a 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) && (($ADDRESS - $BASE + $LEN) > 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
