summaryrefslogtreecommitdiff
path: root/src/mem/physical.hh
diff options
context:
space:
mode:
authorAli Saidi <Ali.Saidi@ARM.com>2010-11-08 13:58:24 -0600
committerAli Saidi <Ali.Saidi@ARM.com>2010-11-08 13:58:24 -0600
commitc779af4e1295c9649ffbbd297ed535bead1cc885 (patch)
tree798169822fd581c304eaf62cf490fdd220c80a27 /src/mem/physical.hh
parentea1167dd9fa60f862f8879a5de66938e617e0ce0 (diff)
downloadgem5-c779af4e1295c9649ffbbd297ed535bead1cc885.tar.xz
Mem: Finish half-baked support for mmaping file in physmem.
Physmem has a parameter to be able to mem map a file, however it isn't actually used. This changeset utilizes the parameter so a file can be mmapped.
Diffstat (limited to 'src/mem/physical.hh')
-rw-r--r--src/mem/physical.hh8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mem/physical.hh b/src/mem/physical.hh
index dae6b42af..290e2bbae 100644
--- a/src/mem/physical.hh
+++ b/src/mem/physical.hh
@@ -149,12 +149,12 @@ class PhysicalMemory : public MemObject
std::vector<MemoryPort*> ports;
typedef std::vector<MemoryPort*>::iterator PortIterator;
- uint64_t cachedSize;
- uint64_t cachedStart;
+ uint64_t _size;
+ uint64_t _start;
public:
Addr new_page();
- uint64_t size() { return cachedSize; }
- uint64_t start() { return cachedStart; }
+ uint64_t size() { return _size; }
+ uint64_t start() { return _start; }
public:
typedef PhysicalMemoryParams Params;