diff -r 6e82c795f7c3 -r 9c5e388abf87 src/mem/abstract_mem.hh --- a/src/mem/abstract_mem.hh Fri Jul 06 14:30:46 2012 +0100 +++ b/src/mem/abstract_mem.hh Fri Jul 06 14:34:59 2012 +0100 @@ -209,21 +209,21 @@ * * @return a single contigous address range */ - Range getAddrRange(); + Range 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 diff -r 6e82c795f7c3 -r 9c5e388abf87 src/mem/abstract_mem.cc --- a/src/mem/abstract_mem.cc Fri Jul 06 14:30:46 2012 +0100 +++ b/src/mem/abstract_mem.cc Fri Jul 06 14:34:59 2012 +0100 @@ -222,7 +222,7 @@ } Range -AbstractMemory::getAddrRange() +AbstractMemory::getAddrRange() const { return range; }