From adff204c976fb821ac3f2d3545fc28e3fa30c088 Mon Sep 17 00:00:00 2001 From: Nilay Vaish Date: Tue, 10 Jan 2012 10:20:32 -0600 Subject: 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. --- src/mem/ruby/system/SparseMemory.hh | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'src/mem/ruby/system/SparseMemory.hh') 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 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__ -- cgit v1.2.3