projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a9bfea5
)
base: addr range: slight change to validity check
author
Nilay Vaish
<nilay@cs.wisc.edu>
Sat, 11 Oct 2014 20:02:22 +0000
(15:02 -0500)
committer
Nilay Vaish
<nilay@cs.wisc.edu>
Sat, 11 Oct 2014 20:02:22 +0000
(15:02 -0500)
The validity check is being changed from < to <= since the end of the range
is considered to be a part of it.
src/base/addr_range.hh
patch
|
blob
|
history
diff --git
a/src/base/addr_range.hh
b/src/base/addr_range.hh
index 7f275e5a941b3af206ad4fde997e88215832f4f0..df4afab9ecf8d573f4b22ed580b052f9791bfcfa 100644
(file)
--- a/
src/base/addr_range.hh
+++ b/
src/base/addr_range.hh
@@
-58,6
+58,7
@@
class AddrRange
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
@@
class AddrRange
/**
* 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.