summaryrefslogtreecommitdiff
path: root/src/mem/ruby/system/SparseMemory.hh
diff options
context:
space:
mode:
authorNilay Vaish <nilay@cs.wisc.edu>2012-01-10 10:20:32 -0600
committerNilay Vaish <nilay@cs.wisc.edu>2012-01-10 10:20:32 -0600
commitadff204c976fb821ac3f2d3545fc28e3fa30c088 (patch)
tree297f542e03eb14a487a29b67a9b92c31b237813b /src/mem/ruby/system/SparseMemory.hh
parentcfa1d26b43614af88154f6015a7f3a4a6b7c08de (diff)
downloadgem5-adff204c976fb821ac3f2d3545fc28e3fa30c088.tar.xz
Sparse Memory: Simplify the structure for an entry
The SparseMemEntry structure includes just one void* pointer. It seems unnecessary that we have a structure for this. The patch removes the structure and makes use of a typedef on void* instead.
Diffstat (limited to 'src/mem/ruby/system/SparseMemory.hh')
-rw-r--r--src/mem/ruby/system/SparseMemory.hh14
1 files changed, 1 insertions, 13 deletions
diff --git a/src/mem/ruby/system/SparseMemory.hh b/src/mem/ruby/system/SparseMemory.hh
index f6937ef54..f4cc12f97 100644
--- a/src/mem/ruby/system/SparseMemory.hh
+++ b/src/mem/ruby/system/SparseMemory.hh
@@ -36,11 +36,7 @@
#include "mem/ruby/common/Address.hh"
#include "mem/ruby/common/Global.hh"
-struct SparseMemEntry
-{
- void* entry;
-};
-
+typedef void* SparseMemEntry;
typedef m5::hash_map<Address, SparseMemEntry> SparseMapType;
struct CurNextInfo
@@ -95,12 +91,4 @@ class SparseMemory
uint64_t* m_removes_per_level;
};
-inline std::ostream&
-operator<<(std::ostream& out, const SparseMemEntry& obj)
-{
- out << "SparseMemEntry";
- out << std::flush;
- return out;
-}
-
#endif // __MEM_RUBY_SYSTEM_SPARSEMEMORY_HH__