summaryrefslogtreecommitdiff
path: root/src/mem/ruby/structures/DirectoryMemory.hh
diff options
context:
space:
mode:
authorNilay Vaish <nilay@cs.wisc.edu>2014-11-06 05:42:20 -0600
committerNilay Vaish <nilay@cs.wisc.edu>2014-11-06 05:42:20 -0600
commit85c29973a3cdbbbc2ed77014a730cbc625899b03 (patch)
tree94dc98ea81cea698f2d9715f961f20bee70715e9 /src/mem/ruby/structures/DirectoryMemory.hh
parent95a0b184314cf0171a20fb7e71c845891dc56496 (diff)
downloadgem5-85c29973a3cdbbbc2ed77014a730cbc625899b03.tar.xz
ruby: remove sparse memory.
In my opinion, it creates needless complications in rest of the code. Also, this structure hinders the move towards common set of code for physical memory controllers.
Diffstat (limited to 'src/mem/ruby/structures/DirectoryMemory.hh')
-rw-r--r--src/mem/ruby/structures/DirectoryMemory.hh9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/mem/ruby/structures/DirectoryMemory.hh b/src/mem/ruby/structures/DirectoryMemory.hh
index db98cc838..523f16531 100644
--- a/src/mem/ruby/structures/DirectoryMemory.hh
+++ b/src/mem/ruby/structures/DirectoryMemory.hh
@@ -36,7 +36,6 @@
#include "mem/ruby/common/Address.hh"
#include "mem/ruby/slicc_interface/AbstractEntry.hh"
#include "mem/ruby/structures/MemoryVector.hh"
-#include "mem/ruby/structures/SparseMemory.hh"
#include "params/RubyDirectoryMemory.hh"
#include "sim/sim_object.hh"
@@ -52,7 +51,6 @@ class DirectoryMemory : public SimObject
uint64 mapAddressToLocalIdx(PhysAddress address);
static uint64 mapAddressToDirectoryVersion(PhysAddress address);
- bool isSparseImplementation() { return m_use_map; }
uint64 getSize() { return m_size_bytes; }
bool isPresent(PhysAddress address);
@@ -60,11 +58,7 @@ class DirectoryMemory : public SimObject
AbstractEntry* allocate(const PhysAddress& address,
AbstractEntry* new_entry);
- void invalidateBlock(PhysAddress address);
-
void print(std::ostream& out) const;
- void regStats();
-
void recordRequestType(DirectoryRequestType requestType);
private:
@@ -88,9 +82,6 @@ class DirectoryMemory : public SimObject
static int m_numa_high_bit;
MemoryVector* m_ram;
- SparseMemory* m_sparseMemory;
- bool m_use_map;
- int m_map_levels;
};
inline std::ostream&