changeset 97d6ed3054ae in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=97d6ed3054ae
description:
        base: addr range: slight change to validity check
        The validity check is being changed from < to <= since the end of the 
range
        is considered to be a part of it.

diffstat:

 src/base/addr_range.hh |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (20 lines):

diff -r 63ed22c458e5 -r 97d6ed3054ae src/base/addr_range.hh
--- a/src/base/addr_range.hh    Sat Oct 11 15:02:22 2014 -0500
+++ b/src/base/addr_range.hh    Sat Oct 11 15:02:22 2014 -0500
@@ -58,6 +58,7 @@
   private:
 
     /// Private fields for the start and end of the range
+    /// Both _start and _end are part of the range.
     Addr _start;
     Addr _end;
 
@@ -166,7 +167,7 @@
     /**
      * Determine if the range is valid.
      */
-    bool valid() const { return _start < _end; }
+    bool valid() const { return _start <= _end; }
 
     /**
      * Get the start address of the range.
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to