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.
diff --git a/src/base/addr_range.hh b/src/base/addr_range.hh
index 7f275e5..df4afab 100644
--- a/src/base/addr_range.hh
+++ b/src/base/addr_range.hh
@@ -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.