summaryrefslogtreecommitdiff
path: root/src/mem/abstract_mem.cc
diff options
context:
space:
mode:
authorAndreas Hansson <andreas.hansson@arm.com>2012-07-09 12:35:44 -0400
committerAndreas Hansson <andreas.hansson@arm.com>2012-07-09 12:35:44 -0400
commitd2f458e7b5b84b09706bf2b7a1f1ce7ed249d9b4 (patch)
tree41f8ac0e6a1d80e9e7048f9171c125f9009dcf96 /src/mem/abstract_mem.cc
parent67e257f44210b0f4462df860500d903e3d4551df (diff)
downloadgem5-d2f458e7b5b84b09706bf2b7a1f1ce7ed249d9b4.tar.xz
Mem: Make members relating to range and size constant
This patch makes the address-range related members const. The change is trivial and merely ensures that they can be called on a const memory.
Diffstat (limited to 'src/mem/abstract_mem.cc')
-rw-r--r--src/mem/abstract_mem.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mem/abstract_mem.cc b/src/mem/abstract_mem.cc
index 0742f3f8e..a7016bb51 100644
--- a/src/mem/abstract_mem.cc
+++ b/src/mem/abstract_mem.cc
@@ -222,7 +222,7 @@ AbstractMemory::regStats()
}
Range<Addr>
-AbstractMemory::getAddrRange()
+AbstractMemory::getAddrRange() const
{
return range;
}