diff options
author | Ali Saidi <Ali.Saidi@ARM.com> | 2010-11-08 13:58:24 -0600 |
---|---|---|
committer | Ali Saidi <Ali.Saidi@ARM.com> | 2010-11-08 13:58:24 -0600 |
commit | c779af4e1295c9649ffbbd297ed535bead1cc885 (patch) | |
tree | 798169822fd581c304eaf62cf490fdd220c80a27 /src/mem/physical.hh | |
parent | ea1167dd9fa60f862f8879a5de66938e617e0ce0 (diff) | |
download | gem5-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.hh | 8 |
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; |