summaryrefslogtreecommitdiff
path: root/src/mem/abstract_mem.hh
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.hh
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.hh')
-rw-r--r--src/mem/abstract_mem.hh6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mem/abstract_mem.hh b/src/mem/abstract_mem.hh
index 7b7e41913..43d9656da 100644
--- a/src/mem/abstract_mem.hh
+++ b/src/mem/abstract_mem.hh
@@ -209,21 +209,21 @@ class AbstractMemory : public MemObject
*
* @return a single contigous address range
*/
- Range<Addr> getAddrRange();
+ Range<Addr> getAddrRange() const;
/**
* Get the memory size.
*
* @return the size of the memory
*/
- uint64_t size() { return range.size(); }
+ uint64_t size() const { return range.size(); }
/**
* Get the start address.
*
* @return the start address of the memory
*/
- Addr start() { return range.start; }
+ Addr start() const { return range.start; }
/**
* Should this memory be passed to the kernel and part of the OS