diff options
Diffstat (limited to 'src/mem/physical.cc')
-rw-r--r-- | src/mem/physical.cc | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/src/mem/physical.cc b/src/mem/physical.cc index c24300cad..937fb80a2 100644 --- a/src/mem/physical.cc +++ b/src/mem/physical.cc @@ -68,8 +68,7 @@ using namespace std; using namespace TheISA; PhysicalMemory::PhysicalMemory(const Params *p) - : MemObject(p), pmemAddr(NULL), pagePtr(0), - lat(p->latency), lat_var(p->latency_var), + : MemObject(p), pmemAddr(NULL), lat(p->latency), lat_var(p->latency_var), _size(params()->range.size()), _start(params()->range.start) { if (size() % TheISA::PageBytes != 0) @@ -124,16 +123,6 @@ PhysicalMemory::~PhysicalMemory() munmap((char*)pmemAddr, size()); } -Addr -PhysicalMemory::new_page() -{ - Addr return_addr = pagePtr << LogVMPageSize; - return_addr += start(); - - ++pagePtr; - return return_addr; -} - unsigned PhysicalMemory::deviceBlockSize() const { |