summaryrefslogtreecommitdiff
path: root/src/mem
diff options
context:
space:
mode:
Diffstat (limited to 'src/mem')
-rw-r--r--src/mem/abstract_mem.cc2
-rw-r--r--src/mem/abstract_mem.hh6
2 files changed, 4 insertions, 4 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;
}
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