ruby: structures: coorect #ifndef macros in header files
authorNilay Vaish <nilay@cs.wisc.edu>
Sat, 11 Oct 2014 20:02:22 +0000 (15:02 -0500)
committerNilay Vaish <nilay@cs.wisc.edu>
Sat, 11 Oct 2014 20:02:22 +0000 (15:02 -0500)
16 files changed:
src/mem/ruby/structures/AbstractReplacementPolicy.hh
src/mem/ruby/structures/BankedArray.hh
src/mem/ruby/structures/CacheMemory.hh
src/mem/ruby/structures/DirectoryMemory.hh
src/mem/ruby/structures/LRUPolicy.hh
src/mem/ruby/structures/MemoryControl.hh
src/mem/ruby/structures/MemoryNode.hh
src/mem/ruby/structures/MemoryVector.hh
src/mem/ruby/structures/PerfectCacheMemory.hh
src/mem/ruby/structures/PersistentTable.hh
src/mem/ruby/structures/PseudoLRUPolicy.hh
src/mem/ruby/structures/RubyMemoryControl.hh
src/mem/ruby/structures/SparseMemory.hh
src/mem/ruby/structures/TBETable.hh
src/mem/ruby/structures/TimerTable.hh
src/mem/ruby/structures/WireBuffer.hh

index 743d5ce0d5df7a3239bdd55204caf6609e090d87..5601d8537e7216f066e2824a9a8f5d4c3b778989 100644 (file)
@@ -26,8 +26,8 @@
  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#ifndef __MEM_RUBY_SYSTEM_ABSTRACTREPLACEMENTPOLICY_HH__
-#define __MEM_RUBY_SYSTEM_ABSTRACTREPLACEMENTPOLICY_HH__
+#ifndef __MEM_RUBY_STRUCTURES_ABSTRACTREPLACEMENTPOLICY_HH__
+#define __MEM_RUBY_STRUCTURES_ABSTRACTREPLACEMENTPOLICY_HH__
 
 #include "base/types.hh"
 
@@ -86,4 +86,4 @@ AbstractReplacementPolicy::getLastAccess(int64 set, int64 way)
     return m_last_ref_ptr[set][way];
 }
 
-#endif // __MEM_RUBY_SYSTEM_ABSTRACTREPLACEMENTPOLICY_HH__
+#endif // __MEM_RUBY_STRUCTURES_ABSTRACTREPLACEMENTPOLICY_HH__
index c594458e633d806986098a1726af8584ab9eb5df..7cc6563d49f39da2aee4a6c42ebbe91311f5a2c5 100644 (file)
@@ -29,8 +29,8 @@
  *
  */
 
-#ifndef __MEM_RUBY_SYSTEM_BANKEDARRAY_HH__
-#define __MEM_RUBY_SYSTEM_BANKEDARRAY_HH__
+#ifndef __MEM_RUBY_STRUCTURES_BANKEDARRAY_HH__
+#define __MEM_RUBY_STRUCTURES_BANKEDARRAY_HH__
 
 #include <vector>
 
index 2a8a09fe9afbe593306164444258d1f918e0509b..4724da2b8afd73525bf734974efd91b6141ae9ce 100644 (file)
@@ -26,8 +26,8 @@
  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#ifndef __MEM_RUBY_SYSTEM_CACHEMEMORY_HH__
-#define __MEM_RUBY_SYSTEM_CACHEMEMORY_HH__
+#ifndef __MEM_RUBY_STRUCTURES_CACHEMEMORY_HH__
+#define __MEM_RUBY_STRUCTURES_CACHEMEMORY_HH__
 
 #include <string>
 #include <vector>
@@ -170,4 +170,4 @@ class CacheMemory : public SimObject
 
 std::ostream& operator<<(std::ostream& out, const CacheMemory& obj);
 
-#endif // __MEM_RUBY_SYSTEM_CACHEMEMORY_HH__
+#endif // __MEM_RUBY_STRUCTURES_CACHEMEMORY_HH__
index cc390e428199540655a6ea2cfa616c79716ee2fc..db98cc8389a613da4866bf443b86da88f4c26a4e 100644 (file)
@@ -26,8 +26,8 @@
  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#ifndef __MEM_RUBY_SYSTEM_DIRECTORYMEMORY_HH__
-#define __MEM_RUBY_SYSTEM_DIRECTORYMEMORY_HH__
+#ifndef __MEM_RUBY_STRUCTURES_DIRECTORYMEMORY_HH__
+#define __MEM_RUBY_STRUCTURES_DIRECTORYMEMORY_HH__
 
 #include <iostream>
 #include <string>
@@ -101,4 +101,4 @@ operator<<(std::ostream& out, const DirectoryMemory& obj)
     return out;
 }
 
-#endif // __MEM_RUBY_SYSTEM_DIRECTORYMEMORY_HH__
+#endif // __MEM_RUBY_STRUCTURES_DIRECTORYMEMORY_HH__
index 0d18e208dd6a1c63d67ca6b5369fd4db6ca1019a..c6203a4a6541fb838d39e61acb8702184930a51f 100644 (file)
@@ -26,8 +26,8 @@
  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#ifndef __MEM_RUBY_SYSTEM_LRUPOLICY_HH__
-#define __MEM_RUBY_SYSTEM_LRUPOLICY_HH__
+#ifndef __MEM_RUBY_STRUCTURES_LRUPOLICY_HH__
+#define __MEM_RUBY_STRUCTURES_LRUPOLICY_HH__
 
 #include "mem/ruby/structures/AbstractReplacementPolicy.hh"
 
@@ -92,4 +92,4 @@ LRUPolicy::getVictim(int64 set) const
     return smallest_index;
 }
 
-#endif // __MEM_RUBY_SYSTEM_LRUPOLICY_HH__
+#endif // __MEM_RUBY_STRUCTURES_LRUPOLICY_HH__
index 7285e0021c9b2bfe42bab9b92d104125dc1a4a9e..52064adf1f5252cdbf3ead41a8c87da5826fc391 100644 (file)
@@ -27,8 +27,8 @@
  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#ifndef __MEM_RUBY_SYSTEM_ABSTRACT_MEMORY_CONTROL_HH__
-#define __MEM_RUBY_SYSTEM_ABSTRACT_MEMORY_CONTROL_HH__
+#ifndef __MEM_RUBY_STRUCTURES_ABSTRACT_MEMORY_CONTROL_HH__
+#define __MEM_RUBY_STRUCTURES_ABSTRACT_MEMORY_CONTROL_HH__
 
 #include <iostream>
 #include <list>
@@ -111,4 +111,4 @@ protected:
     MemCntrlEvent m_event;
 };
 
-#endif //   __MEM_RUBY_SYSTEM_ABSTRACT_MEMORY_CONTROL_HH__
+#endif //   __MEM_RUBY_STRUCTURES_ABSTRACT_MEMORY_CONTROL_HH__
index f215ab649fad21f97d2dd366a138a2ee24720180..3f40e3648dbb52e22840989d3ffb231304dea3e6 100644 (file)
@@ -35,8 +35,8 @@
  * message is enqueued to be sent back to the directory.
  */
 
-#ifndef __MEM_RUBY_SYSTEM_MEMORYNODE_HH__
-#define __MEM_RUBY_SYSTEM_MEMORYNODE_HH__
+#ifndef __MEM_RUBY_STRUCTURES_MEMORYNODE_HH__
+#define __MEM_RUBY_STRUCTURES_MEMORYNODE_HH__
 
 #include <iostream>
 
@@ -89,4 +89,4 @@ operator<<(std::ostream& out, const MemoryNode& obj)
     return out;
 }
 
-#endif // __MEM_RUBY_SYSTEM_MEMORYNODE_HH__
+#endif // __MEM_RUBY_STRUCTURES_MEMORYNODE_HH__
index f2488b5910c801488e042239c03b12d72695792c..384c68ad67728e67853436ea2f9bb8612a176285 100644 (file)
@@ -26,8 +26,8 @@
  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#ifndef __MEM_RUBY_SYSTEM_MEMORYVECTOR_HH__
-#define __MEM_RUBY_SYSTEM_MEMORYVECTOR_HH__
+#ifndef __MEM_RUBY_STRUCTURES_MEMORYVECTOR_HH__
+#define __MEM_RUBY_STRUCTURES_MEMORYVECTOR_HH__
 
 #include "base/trace.hh"
 #include "debug/RubyCacheTrace.hh"
@@ -234,4 +234,4 @@ MemoryVector::populatePages(uint8_t *raw_data)
     }
 }
 
-#endif // __MEM_RUBY_SYSTEM_MEMORYVECTOR_HH__
+#endif // __MEM_RUBY_STRUCTURES_MEMORYVECTOR_HH__
index b56543c413902e9f36d2c737f9046301d3c8a39c..555f24b71182f8d0933882100b1cd24b0e443d78 100644 (file)
@@ -26,8 +26,8 @@
  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#ifndef __MEM_RUBY_SYSTEM_PERFECTCACHEMEMORY_HH__
-#define __MEM_RUBY_SYSTEM_PERFECTCACHEMEMORY_HH__
+#ifndef __MEM_RUBY_STRUCTURES_PERFECTCACHEMEMORY_HH__
+#define __MEM_RUBY_STRUCTURES_PERFECTCACHEMEMORY_HH__
 
 #include "base/hashmap.hh"
 #include "mem/protocol/AccessPermission.hh"
@@ -189,4 +189,4 @@ PerfectCacheMemory<ENTRY>::print(std::ostream& out) const
 {
 }
 
-#endif // __MEM_RUBY_SYSTEM_PERFECTCACHEMEMORY_HH__
+#endif // __MEM_RUBY_STRUCTURES_PERFECTCACHEMEMORY_HH__
index b023987a4233a22410d34a7b63c4d0b77cebabb9..7e10b328cf712cd524ea13be280de040964f0ff1 100644 (file)
@@ -26,8 +26,8 @@
  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#ifndef __MEM_RUBY_SYSTEM_PERSISTENTTABLE_HH__
-#define __MEM_RUBY_SYSTEM_PERSISTENTTABLE_HH__
+#ifndef __MEM_RUBY_STRUCTURES_PERSISTENTTABLE_HH__
+#define __MEM_RUBY_STRUCTURES_PERSISTENTTABLE_HH__
 
 #include <iostream>
 
@@ -97,4 +97,4 @@ operator<<(std::ostream& out, const PersistentTableEntry& obj)
     return out;
 }
 
-#endif // __MEM_RUBY_SYSTEM_PERSISTENTTABLE_HH__
+#endif // __MEM_RUBY_STRUCTURES_PERSISTENTTABLE_HH__
index 8722728cf36f53a5895fbd919a28430cafc5a962..9534fa781550cce8b0a1c205ae20994a60f6b57e 100644 (file)
@@ -26,8 +26,8 @@
  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#ifndef __MEM_RUBY_SYSTEM_PSEUDOLRUPOLICY_HH__
-#define __MEM_RUBY_SYSTEM_PSEUDOLRUPOLICY_HH__
+#ifndef __MEM_RUBY_STRUCTURES_PSEUDOLRUPOLICY_HH__
+#define __MEM_RUBY_STRUCTURES_PSEUDOLRUPOLICY_HH__
 
 #include "mem/ruby/structures/AbstractReplacementPolicy.hh"
 
@@ -134,4 +134,4 @@ PseudoLRUPolicy::getVictim(int64 set) const
     return (index > (m_assoc - 1)) ? m_assoc - 1 : index;
 }
 
-#endif // __MEM_RUBY_SYSTEM_PSEUDOLRUPOLICY_HH__
+#endif // __MEM_RUBY_STRUCTURES_PSEUDOLRUPOLICY_HH__
index f7fb17975c83c6a2199a78b2ab3f2357b5b19a46..e7f1c54cc0ad06982c61ca968a32e2297607b487 100644 (file)
@@ -27,8 +27,8 @@
  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#ifndef __MEM_RUBY_SYSTEM_MEMORY_CONTROL_HH__
-#define __MEM_RUBY_SYSTEM_MEMORY_CONTROL_HH__
+#ifndef __MEM_RUBY_STRUCTURES_MEMORY_CONTROL_HH__
+#define __MEM_RUBY_STRUCTURES_MEMORY_CONTROL_HH__
 
 #include <iostream>
 #include <list>
@@ -169,4 +169,4 @@ class RubyMemoryControl : public MemoryControl
 
 std::ostream& operator<<(std::ostream& out, const RubyMemoryControl& obj);
 
-#endif // __MEM_RUBY_SYSTEM_MEMORY_CONTROL_HH__
+#endif // __MEM_RUBY_STRUCTURES_MEMORY_CONTROL_HH__
index 9d3c6a844de14eafd301560c2f74db1b4afd50e0..d5bf31403ebbafb8e57096e2ec8fddf88694daf1 100644 (file)
@@ -27,8 +27,8 @@
  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#ifndef __MEM_RUBY_SYSTEM_SPARSEMEMORY_HH__
-#define __MEM_RUBY_SYSTEM_SPARSEMEMORY_HH__
+#ifndef __MEM_RUBY_STRUCTURES_SPARSEMEMORY_HH__
+#define __MEM_RUBY_STRUCTURES_SPARSEMEMORY_HH__
 
 #include <iostream>
 #include <string>
@@ -95,4 +95,4 @@ class SparseMemory
     Stats::Vector m_removes_per_level;
 };
 
-#endif // __MEM_RUBY_SYSTEM_SPARSEMEMORY_HH__
+#endif // __MEM_RUBY_STRUCTURES_SPARSEMEMORY_HH__
index 018da6cbb963172c7fd18677f4324d6c44ad7f98..a3282af7d298f11308d61cb87d1259279bc8537a 100644 (file)
@@ -26,8 +26,8 @@
  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#ifndef __MEM_RUBY_SYSTEM_TBETABLE_HH__
-#define __MEM_RUBY_SYSTEM_TBETABLE_HH__
+#ifndef __MEM_RUBY_STRUCTURES_TBETABLE_HH__
+#define __MEM_RUBY_STRUCTURES_TBETABLE_HH__
 
 #include <iostream>
 
@@ -121,4 +121,4 @@ TBETable<ENTRY>::print(std::ostream& out) const
 {
 }
 
-#endif // __MEM_RUBY_SYSTEM_TBETABLE_HH__
+#endif // __MEM_RUBY_STRUCTURES_TBETABLE_HH__
index b271d3e37b0c9fae09e071554192df4b9313c491..c5277818b8e566684ca68f31bbb4f50139eb7126 100644 (file)
@@ -26,8 +26,8 @@
  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#ifndef __MEM_RUBY_SYSTEM_TIMERTABLE_HH__
-#define __MEM_RUBY_SYSTEM_TIMERTABLE_HH__
+#ifndef __MEM_RUBY_STRUCTURES_TIMERTABLE_HH__
+#define __MEM_RUBY_STRUCTURES_TIMERTABLE_HH__
 
 #include <cassert>
 #include <iostream>
@@ -104,4 +104,4 @@ operator<<(std::ostream& out, const TimerTable& obj)
     return out;
 }
 
-#endif // __MEM_RUBY_SYSTEM_TIMERTABLE_HH__
+#endif // __MEM_RUBY_STRUCTURES_TIMERTABLE_HH__
index 6dee01ae00a98622628bca2484db94921cc59221..a362d524eac416d89907248d6618de370818d339 100644 (file)
@@ -29,8 +29,8 @@
  *
  */
 
-#ifndef __MEM_RUBY_SYSTEM_WIREBUFFER_HH__
-#define __MEM_RUBY_SYSTEM_WIREBUFFER_HH__
+#ifndef __MEM_RUBY_STRUCTURES_WIREBUFFER_HH__
+#define __MEM_RUBY_STRUCTURES_WIREBUFFER_HH__
 
 #include <iostream>
 #include <string>
@@ -99,4 +99,4 @@ class WireBuffer : public SimObject
 
 std::ostream& operator<<(std::ostream& out, const WireBuffer& obj);
 
-#endif // __MEM_RUBY_SYSTEM_WireBuffer_HH__
+#endif // __MEM_RUBY_STRUCTURES_WireBuffer_HH__