summaryrefslogtreecommitdiff
path: root/src/mem
diff options
context:
space:
mode:
authorDaniel R. Carvalho <odanrc@yahoo.com.br>2018-02-05 16:32:23 +0100
committerDaniel Carvalho <mr.danrc@gmail.com>2018-02-06 10:26:27 +0000
commitecee328c9244504f616a3b8cd352fca3d3e4b6e7 (patch)
tree4a551953d452215f091491226c2c78d74d085401 /src/mem
parentd5b9ffda458c0e1b7ad52b42d7c8caf2b4a5c022 (diff)
downloadgem5-ecee328c9244504f616a3b8cd352fca3d3e4b6e7.tar.xz
mem: Standardize mem folder header guards
Standardize all header guards in the mem directory according to the most frequent patterns. In general they have the form: mem: __FOLDER_TREE_FILE_NAME_HH__ ruby: __FOLDER_TREE_FILENAME_HH__ Change-Id: I983853e292deb302becf151bf0e970057dc24774 Reviewed-on: https://gem5-review.googlesource.com/7881 Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com> Maintainer: Nikos Nikoleris <nikos.nikoleris@arm.com>
Diffstat (limited to 'src/mem')
-rw-r--r--src/mem/abstract_mem.hh6
-rw-r--r--src/mem/cache/tags/base.hh6
-rw-r--r--src/mem/cache/tags/base_set_assoc.hh6
-rw-r--r--src/mem/external_master.hh6
-rw-r--r--src/mem/external_slave.hh6
-rw-r--r--src/mem/fs_translating_port_proxy.hh6
-rw-r--r--src/mem/hmc_controller.hh6
-rw-r--r--src/mem/ruby/common/BoolVec.hh5
-rw-r--r--src/mem/ruby/common/IntVec.hh5
-rw-r--r--src/mem/ruby/common/MachineID.hh6
-rw-r--r--src/mem/ruby/common/TypeDefines.hh6
-rw-r--r--src/mem/ruby/filters/LSB_CountingBloomFilter.hh6
-rw-r--r--src/mem/ruby/network/BasicLink.hh6
-rw-r--r--src/mem/ruby/network/BasicRouter.hh6
-rw-r--r--src/mem/ruby/network/MessageBuffer.hh6
-rw-r--r--src/mem/ruby/network/fault_model/FaultModel.hh6
-rw-r--r--src/mem/ruby/network/garnet2.0/CommonTypes.hh6
-rw-r--r--src/mem/ruby/network/garnet2.0/Credit.hh6
-rw-r--r--src/mem/ruby/network/garnet2.0/CreditLink.hh6
-rw-r--r--src/mem/ruby/network/garnet2.0/CrossbarSwitch.hh6
-rw-r--r--src/mem/ruby/network/garnet2.0/GarnetLink.hh6
-rw-r--r--src/mem/ruby/network/garnet2.0/GarnetNetwork.hh6
-rw-r--r--src/mem/ruby/network/garnet2.0/InputUnit.hh6
-rw-r--r--src/mem/ruby/network/garnet2.0/NetworkInterface.hh6
-rw-r--r--src/mem/ruby/network/garnet2.0/NetworkLink.hh6
-rw-r--r--src/mem/ruby/network/garnet2.0/OutVcState.hh6
-rw-r--r--src/mem/ruby/network/garnet2.0/OutputUnit.hh6
-rw-r--r--src/mem/ruby/network/garnet2.0/Router.hh6
-rw-r--r--src/mem/ruby/network/garnet2.0/RoutingUnit.hh6
-rw-r--r--src/mem/ruby/network/garnet2.0/SwitchAllocator.hh6
-rw-r--r--src/mem/ruby/network/garnet2.0/VirtualChannel.hh6
-rw-r--r--src/mem/ruby/network/garnet2.0/flit.hh6
-rw-r--r--src/mem/ruby/network/garnet2.0/flitBuffer.hh6
-rw-r--r--src/mem/ruby/network/simple/SimpleLink.hh6
-rw-r--r--src/mem/ruby/slicc_interface/RubyRequest.hh6
-rw-r--r--src/mem/ruby/slicc_interface/RubySlicc_Util.hh6
-rw-r--r--src/mem/ruby/system/CacheRecorder.hh6
-rw-r--r--src/mem/ruby/system/RubySystem.hh6
-rw-r--r--src/mem/ruby/system/VIPERCoalescer.hh7
-rw-r--r--src/mem/simple_mem.hh6
40 files changed, 124 insertions, 115 deletions
diff --git a/src/mem/abstract_mem.hh b/src/mem/abstract_mem.hh
index 31d34f051..b57f73b4a 100644
--- a/src/mem/abstract_mem.hh
+++ b/src/mem/abstract_mem.hh
@@ -46,8 +46,8 @@
* AbstractMemory declaration
*/
-#ifndef __ABSTRACT_MEMORY_HH__
-#define __ABSTRACT_MEMORY_HH__
+#ifndef __MEM_ABSTRACT_MEMORY_HH__
+#define __MEM_ABSTRACT_MEMORY_HH__
#include "mem/mem_object.hh"
#include "params/AbstractMemory.hh"
@@ -319,4 +319,4 @@ class AbstractMemory : public MemObject
};
-#endif //__ABSTRACT_MEMORY_HH__
+#endif //__MEM_ABSTRACT_MEMORY_HH__
diff --git a/src/mem/cache/tags/base.hh b/src/mem/cache/tags/base.hh
index 4caf6de4e..5c9f46a41 100644
--- a/src/mem/cache/tags/base.hh
+++ b/src/mem/cache/tags/base.hh
@@ -46,8 +46,8 @@
* Declaration of a common base class for cache tagstore objects.
*/
-#ifndef __BASE_TAGS_HH__
-#define __BASE_TAGS_HH__
+#ifndef __MEM_CACHE_TAGS_BASE_HH__
+#define __MEM_CACHE_TAGS_BASE_HH__
#include <string>
@@ -268,4 +268,4 @@ class BaseTagsDumpCallback : public Callback
virtual void process() { tags->computeStats(); };
};
-#endif //__BASE_TAGS_HH__
+#endif //__MEM_CACHE_TAGS_BASE_HH__
diff --git a/src/mem/cache/tags/base_set_assoc.hh b/src/mem/cache/tags/base_set_assoc.hh
index 4049b8486..ef4c68b62 100644
--- a/src/mem/cache/tags/base_set_assoc.hh
+++ b/src/mem/cache/tags/base_set_assoc.hh
@@ -45,8 +45,8 @@
* Declaration of a base set associative tag store.
*/
-#ifndef __MEM_CACHE_TAGS_BASESETASSOC_HH__
-#define __MEM_CACHE_TAGS_BASESETASSOC_HH__
+#ifndef __MEM_CACHE_TAGS_BASE_SET_ASSOC_HH__
+#define __MEM_CACHE_TAGS_BASE_SET_ASSOC_HH__
#include <cassert>
#include <cstring>
@@ -365,4 +365,4 @@ public:
}
};
-#endif // __MEM_CACHE_TAGS_BASESETASSOC_HH__
+#endif //__MEM_CACHE_TAGS_BASE_SET_ASSOC_HH__
diff --git a/src/mem/external_master.hh b/src/mem/external_master.hh
index 7303de062..d27cb4df1 100644
--- a/src/mem/external_master.hh
+++ b/src/mem/external_master.hh
@@ -57,8 +57,8 @@
* The external port must provide a gem5 MasterPort interface.
*/
-#ifndef __MEM_EXTERNAL_MASTER__
-#define __MEM_EXTERNAL_MASTER__
+#ifndef __MEM_EXTERNAL_MASTER_HH__
+#define __MEM_EXTERNAL_MASTER_HH__
#include "mem/mem_object.hh"
#include "params/ExternalMaster.hh"
@@ -135,4 +135,4 @@ class ExternalMaster : public MemObject
};
-#endif // __MEM_EXTERNAL_MASTER__
+#endif //__MEM_EXTERNAL_MASTER_HH__
diff --git a/src/mem/external_slave.hh b/src/mem/external_slave.hh
index d1782237c..2bb0be869 100644
--- a/src/mem/external_slave.hh
+++ b/src/mem/external_slave.hh
@@ -57,8 +57,8 @@
* object).
*/
-#ifndef __MEM_EXTERNAL_SLAVE__
-#define __MEM_EXTERNAL_SLAVE__
+#ifndef __MEM_EXTERNAL_SLAVE_HH__
+#define __MEM_EXTERNAL_SLAVE_HH__
#include "mem/mem_object.hh"
#include "params/ExternalSlave.hh"
@@ -139,4 +139,4 @@ class ExternalSlave : public MemObject
};
-#endif // __MEM_EXTERNAL_SLAVE__
+#endif //__MEM_EXTERNAL_SLAVE_HH__
diff --git a/src/mem/fs_translating_port_proxy.hh b/src/mem/fs_translating_port_proxy.hh
index 8120f96ea..e7b74d080 100644
--- a/src/mem/fs_translating_port_proxy.hh
+++ b/src/mem/fs_translating_port_proxy.hh
@@ -56,8 +56,8 @@
* the system.
*/
-#ifndef __MEM_FS_PORT_PROXY_HH__
-#define __MEM_FS_PORT_PROXY_HH__
+#ifndef __MEM_FS_TRANSLATING_PORT_PROXY_HH__
+#define __MEM_FS_TRANSLATING_PORT_PROXY_HH__
#include "mem/port_proxy.hh"
@@ -102,4 +102,4 @@ void CopyIn(ThreadContext *tc, Addr dest, const void *source, size_t cplen);
void CopyStringOut(ThreadContext *tc, char *dst, Addr vaddr, size_t maxlen);
void CopyStringIn(ThreadContext *tc, const char *src, Addr vaddr);
-#endif //__MEM_FS_PORT_PROXY_HH__
+#endif //__MEM_FS_TRANSLATING_PORT_PROXY_HH__
diff --git a/src/mem/hmc_controller.hh b/src/mem/hmc_controller.hh
index cec9425d8..fd6cb0bc9 100644
--- a/src/mem/hmc_controller.hh
+++ b/src/mem/hmc_controller.hh
@@ -46,8 +46,8 @@
* HMCController declaration
*/
-#ifndef __HMC_CONTROLLER__
-#define __HMC_CONTROLLER__
+#ifndef __MEM_HMC_CONTROLLER_HH__
+#define __MEM_HMC_CONTROLLER_HH__
#include "mem/noncoherent_xbar.hh"
#include "mem/port.hh"
@@ -100,4 +100,4 @@ private:
int rotate_counter();
};
-#endif //__HMC_CONTROLLER__
+#endif //__MEM_HMC_CONTROLLER_HH__
diff --git a/src/mem/ruby/common/BoolVec.hh b/src/mem/ruby/common/BoolVec.hh
index 0323ecc1e..95df602c9 100644
--- a/src/mem/ruby/common/BoolVec.hh
+++ b/src/mem/ruby/common/BoolVec.hh
@@ -37,9 +37,14 @@
* Authors: Brad Beckmann
*/
+#ifndef __MEM_RUBY_COMMON_BOOLVEC_HH__
+#define __MEM_RUBY_COMMON_BOOLVEC_HH__
+
#include <ostream>
#include <vector>
typedef std::vector<bool> BoolVec;
std::ostream& operator<<(std::ostream& os, const std::vector<bool>& myvector);
+
+#endif //__MEM_RUBY_COMMON_BOOLVEC_HH__
diff --git a/src/mem/ruby/common/IntVec.hh b/src/mem/ruby/common/IntVec.hh
index 13e213a88..62dae2310 100644
--- a/src/mem/ruby/common/IntVec.hh
+++ b/src/mem/ruby/common/IntVec.hh
@@ -33,9 +33,14 @@
* Authors: Brad Beckmann
*/
+#ifndef __MEM_RUBY_COMMON_INTVEC_HH__
+#define __MEM_RUBY_COMMON_INTVEC_HH__
+
#include <ostream>
#include <vector>
typedef std::vector<int> IntVec;
std::ostream& operator<<(std::ostream& os, const std::vector<int>& myvector);
+
+#endif //__MEM_RUBY_COMMON_INTVEC_HH__
diff --git a/src/mem/ruby/common/MachineID.hh b/src/mem/ruby/common/MachineID.hh
index a28b0af7e..8fe8f80d9 100644
--- a/src/mem/ruby/common/MachineID.hh
+++ b/src/mem/ruby/common/MachineID.hh
@@ -26,8 +26,8 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef __MEM_RUBY_SYSTEM_MACHINEID_HH__
-#define __MEM_RUBY_SYSTEM_MACHINEID_HH__
+#ifndef __MEM_RUBY_COMMON_MACHINEID_HH__
+#define __MEM_RUBY_COMMON_MACHINEID_HH__
#include <iostream>
#include <string>
@@ -84,4 +84,4 @@ operator<<(std::ostream& out, const MachineID& obj)
return out;
}
-#endif // __MEM_RUBY_SYSTEM_MACHINEID_HH__
+#endif // __MEM_RUBY_COMMON_MACHINEID_HH__
diff --git a/src/mem/ruby/common/TypeDefines.hh b/src/mem/ruby/common/TypeDefines.hh
index f29efe8b5..90be1c602 100644
--- a/src/mem/ruby/common/TypeDefines.hh
+++ b/src/mem/ruby/common/TypeDefines.hh
@@ -27,11 +27,11 @@
*/
-#ifndef TYPEDEFINES_H
-#define TYPEDEFINES_H
+#ifndef __MEM_RUBY_COMMON_TYPEDEFINES_HH__
+#define __MEM_RUBY_COMMON_TYPEDEFINES_HH__
typedef unsigned int LinkID;
typedef unsigned int NodeID;
typedef unsigned int SwitchID;
-#endif
+#endif //__MEM_RUBY_COMMON_TYPEDEFINES_HH__
diff --git a/src/mem/ruby/filters/LSB_CountingBloomFilter.hh b/src/mem/ruby/filters/LSB_CountingBloomFilter.hh
index e0e263ae6..05749be6c 100644
--- a/src/mem/ruby/filters/LSB_CountingBloomFilter.hh
+++ b/src/mem/ruby/filters/LSB_CountingBloomFilter.hh
@@ -26,8 +26,8 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef __MEM_RUBY_FILTERS_LSBCOUNTINGBLOOMFILTER_HH__
-#define __MEM_RUBY_FILTERS_LSBCOUNTINGBLOOMFILTER_HH__
+#ifndef __MEM_RUBY_FILTERS_LSB_COUNTINGBLOOMFILTER_HH__
+#define __MEM_RUBY_FILTERS_LSB_COUNTINGBLOOMFILTER_HH__
#include <iostream>
#include <vector>
@@ -68,4 +68,4 @@ class LSB_CountingBloomFilter : public AbstractBloomFilter
int m_count;
};
-#endif // __MEM_RUBY_FILTERS_LSBCOUNTINGBLOOMFILTER_HH__
+#endif //__MEM_RUBY_FILTERS_LSB_COUNTINGBLOOMFILTER_HH__
diff --git a/src/mem/ruby/network/BasicLink.hh b/src/mem/ruby/network/BasicLink.hh
index 188f62941..39c20969f 100644
--- a/src/mem/ruby/network/BasicLink.hh
+++ b/src/mem/ruby/network/BasicLink.hh
@@ -26,8 +26,8 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef __MEM_RUBY_NETWORK_BASIC_LINK_HH__
-#define __MEM_RUBY_NETWORK_BASIC_LINK_HH__
+#ifndef __MEM_RUBY_NETWORK_BASICLINK_HH__
+#define __MEM_RUBY_NETWORK_BASICLINK_HH__
#include <iostream>
#include <string>
@@ -85,4 +85,4 @@ class BasicIntLink : public BasicLink
friend class Topology;
};
-#endif // __MEM_RUBY_NETWORK_BASIC_LINK_HH__
+#endif //__MEM_RUBY_NETWORK_BASICLINK_HH__
diff --git a/src/mem/ruby/network/BasicRouter.hh b/src/mem/ruby/network/BasicRouter.hh
index 2c8905675..a74dadb21 100644
--- a/src/mem/ruby/network/BasicRouter.hh
+++ b/src/mem/ruby/network/BasicRouter.hh
@@ -26,8 +26,8 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef __MEM_RUBY_NETWORK_BASIC_ROUTER_HH__
-#define __MEM_RUBY_NETWORK_BASIC_ROUTER_HH__
+#ifndef __MEM_RUBY_NETWORK_BASICROUTER_HH__
+#define __MEM_RUBY_NETWORK_BASICROUTER_HH__
#include <iostream>
#include <string>
@@ -62,4 +62,4 @@ operator<<(std::ostream& out, const BasicRouter& obj)
return out;
}
-#endif // __MEM_RUBY_NETWORK_BASIC_ROUTER_HH__
+#endif //__MEM_RUBY_NETWORK_BASICROUTER_HH__
diff --git a/src/mem/ruby/network/MessageBuffer.hh b/src/mem/ruby/network/MessageBuffer.hh
index 6694830b0..69a0fb33e 100644
--- a/src/mem/ruby/network/MessageBuffer.hh
+++ b/src/mem/ruby/network/MessageBuffer.hh
@@ -31,8 +31,8 @@
* that they can be dequeued after a given delta time has expired.
*/
-#ifndef __MEM_RUBY_BUFFERS_MESSAGEBUFFER_HH__
-#define __MEM_RUBY_BUFFERS_MESSAGEBUFFER_HH__
+#ifndef __MEM_RUBY_NETWORK_MESSAGEBUFFER_HH__
+#define __MEM_RUBY_NETWORK_MESSAGEBUFFER_HH__
#include <algorithm>
#include <cassert>
@@ -212,4 +212,4 @@ operator<<(std::ostream& out, const MessageBuffer& obj)
return out;
}
-#endif // __MEM_RUBY_BUFFERS_MESSAGEBUFFER_HH__
+#endif //__MEM_RUBY_NETWORK_MESSAGEBUFFER_HH__
diff --git a/src/mem/ruby/network/fault_model/FaultModel.hh b/src/mem/ruby/network/fault_model/FaultModel.hh
index f2f355b3c..6c68c7bb3 100644
--- a/src/mem/ruby/network/fault_model/FaultModel.hh
+++ b/src/mem/ruby/network/fault_model/FaultModel.hh
@@ -37,8 +37,8 @@
* Proceedings of the 48th Design Automation Conference (DAC'11)
*/
-#ifndef __MEM_RUBY_NETWORK_FAULT_MODEL_HH__
-#define __MEM_RUBY_NETWORK_FAULT_MODEL_HH__
+#ifndef __MEM_RUBY_NETWORK_FAULT_MODEL_FAULTMODEL_HH__
+#define __MEM_RUBY_NETWORK_FAULT_MODEL_FAULTMODEL_HH__
// tool limitations and fixed inputs
#define MAX_VCs 40
@@ -138,4 +138,4 @@ class FaultModel : public SimObject
std::vector <int> temperature_weights;
};
-#endif // __MEM_RUBY_NETWORK_FAULT_MODEL_HH__
+#endif //__MEM_RUBY_NETWORK_FAULT_MODEL_FAULTMODEL_HH__
diff --git a/src/mem/ruby/network/garnet2.0/CommonTypes.hh b/src/mem/ruby/network/garnet2.0/CommonTypes.hh
index 63fc464a6..3a8c84aa0 100644
--- a/src/mem/ruby/network/garnet2.0/CommonTypes.hh
+++ b/src/mem/ruby/network/garnet2.0/CommonTypes.hh
@@ -31,8 +31,8 @@
*/
-#ifndef __MEM_RUBY_NETWORK_GARNET_COMMONTYPES_HH__
-#define __MEM_RUBY_NETWORK_GARNET_COMMONTYPES_HH__
+#ifndef __MEM_RUBY_NETWORK_GARNET2_0_COMMONTYPES_HH__
+#define __MEM_RUBY_NETWORK_GARNET2_0_COMMONTYPES_HH__
#include "mem/ruby/common/NetDest.hh"
@@ -62,4 +62,4 @@ struct RouteInfo
#define INFINITE_ 10000
-#endif // __MEM_RUBY_NETWORK_GARNET_COMMONTYPES_HH__
+#endif //__MEM_RUBY_NETWORK_GARNET2_0_COMMONTYPES_HH__
diff --git a/src/mem/ruby/network/garnet2.0/Credit.hh b/src/mem/ruby/network/garnet2.0/Credit.hh
index c2984e9ee..7771484c7 100644
--- a/src/mem/ruby/network/garnet2.0/Credit.hh
+++ b/src/mem/ruby/network/garnet2.0/Credit.hh
@@ -31,8 +31,8 @@
*/
-#ifndef __MEM_RUBY_NETWORK_GARNET_CREDIT_HH__
-#define __MEM_RUBY_NETWORK_GARNET_CREDIT_HH__
+#ifndef __MEM_RUBY_NETWORK_GARNET2_0_CREDIT_HH__
+#define __MEM_RUBY_NETWORK_GARNET2_0_CREDIT_HH__
#include <cassert>
#include <iostream>
@@ -57,4 +57,4 @@ class Credit : public flit
bool m_is_free_signal;
};
-#endif // __MEM_RUBY_NETWORK_GARNET_CREDIT_HH__
+#endif // __MEM_RUBY_NETWORK_GARNET2_0_CREDIT_HH__
diff --git a/src/mem/ruby/network/garnet2.0/CreditLink.hh b/src/mem/ruby/network/garnet2.0/CreditLink.hh
index 207fb864d..8d6da67ff 100644
--- a/src/mem/ruby/network/garnet2.0/CreditLink.hh
+++ b/src/mem/ruby/network/garnet2.0/CreditLink.hh
@@ -31,8 +31,8 @@
*/
-#ifndef __MEM_RUBY_NETWORK_GARNET_CREDIT_LINK_HH__
-#define __MEM_RUBY_NETWORK_GARNET_CREDIT_LINK_HH__
+#ifndef __MEM_RUBY_NETWORK_GARNET2_0_CREDITLINK_HH__
+#define __MEM_RUBY_NETWORK_GARNET2_0_CREDITLINK_HH__
#include "mem/ruby/network/garnet2.0/NetworkLink.hh"
#include "params/CreditLink.hh"
@@ -44,4 +44,4 @@ class CreditLink : public NetworkLink
CreditLink(const Params *p) : NetworkLink(p) {}
};
-#endif // __MEM_RUBY_NETWORK_GARNET_CREDIT_LINK_HH__
+#endif // __MEM_RUBY_NETWORK_GARNET2_0_CREDITLINK_HH__
diff --git a/src/mem/ruby/network/garnet2.0/CrossbarSwitch.hh b/src/mem/ruby/network/garnet2.0/CrossbarSwitch.hh
index bca3a92e4..9d4fee5a7 100644
--- a/src/mem/ruby/network/garnet2.0/CrossbarSwitch.hh
+++ b/src/mem/ruby/network/garnet2.0/CrossbarSwitch.hh
@@ -31,8 +31,8 @@
*/
-#ifndef __MEM_RUBY_NETWORK_GARNET_CROSSBAR_SWITCH_HH__
-#define __MEM_RUBY_NETWORK_GARNET_CROSSBAR_SWITCH_HH__
+#ifndef __MEM_RUBY_NETWORK_GARNET2_0_CROSSBARSWITCH_HH__
+#define __MEM_RUBY_NETWORK_GARNET2_0_CROSSBARSWITCH_HH__
#include <iostream>
#include <vector>
@@ -70,4 +70,4 @@ class CrossbarSwitch : public Consumer
std::vector<OutputUnit *> m_output_unit;
};
-#endif // __MEM_RUBY_NETWORK_GARNET_CROSSBAR_SWITCH_HH__
+#endif // __MEM_RUBY_NETWORK_GARNET2_0_CROSSBARSWITCH_HH__
diff --git a/src/mem/ruby/network/garnet2.0/GarnetLink.hh b/src/mem/ruby/network/garnet2.0/GarnetLink.hh
index 7311e9379..55164b68e 100644
--- a/src/mem/ruby/network/garnet2.0/GarnetLink.hh
+++ b/src/mem/ruby/network/garnet2.0/GarnetLink.hh
@@ -31,8 +31,8 @@
*/
-#ifndef __MEM_RUBY_NETWORK_GARNET_LINK_HH__
-#define __MEM_RUBY_NETWORK_GARNET_LINK_HH__
+#ifndef __MEM_RUBY_NETWORK_GARNET2_0_GARNETLINK_HH__
+#define __MEM_RUBY_NETWORK_GARNET2_0_GARNETLINK_HH__
#include <iostream>
#include <string>
@@ -94,4 +94,4 @@ operator<<(std::ostream& out, const GarnetExtLink& obj)
return out;
}
-#endif // __MEM_RUBY_NETWORK_GARNET_LINK_HH__
+#endif //__MEM_RUBY_NETWORK_GARNET2_0_GARNETLINK_HH__
diff --git a/src/mem/ruby/network/garnet2.0/GarnetNetwork.hh b/src/mem/ruby/network/garnet2.0/GarnetNetwork.hh
index 3ced88740..d8cbb083c 100644
--- a/src/mem/ruby/network/garnet2.0/GarnetNetwork.hh
+++ b/src/mem/ruby/network/garnet2.0/GarnetNetwork.hh
@@ -31,8 +31,8 @@
*/
-#ifndef __MEM_RUBY_NETWORK_GARNET_NETWORK_HH__
-#define __MEM_RUBY_NETWORK_GARNET_NETWORK_HH__
+#ifndef __MEM_RUBY_NETWORK_GARNET2_0_GARNETNETWORK_HH__
+#define __MEM_RUBY_NETWORK_GARNET2_0_GARNETNETWORK_HH__
#include <iostream>
#include <vector>
@@ -205,4 +205,4 @@ operator<<(std::ostream& out, const GarnetNetwork& obj)
return out;
}
-#endif // __MEM_RUBY_NETWORK_GARNET_NETWORK_HH__
+#endif //__MEM_RUBY_NETWORK_GARNET2_0_GARNETNETWORK_HH__
diff --git a/src/mem/ruby/network/garnet2.0/InputUnit.hh b/src/mem/ruby/network/garnet2.0/InputUnit.hh
index 26803ed86..c2cbd5891 100644
--- a/src/mem/ruby/network/garnet2.0/InputUnit.hh
+++ b/src/mem/ruby/network/garnet2.0/InputUnit.hh
@@ -31,8 +31,8 @@
*/
-#ifndef __MEM_RUBY_NETWORK_GARNET_INPUT_UNIT_HH__
-#define __MEM_RUBY_NETWORK_GARNET_INPUT_UNIT_HH__
+#ifndef __MEM_RUBY_NETWORK_GARNET2_0_INPUTUNIT_HH__
+#define __MEM_RUBY_NETWORK_GARNET2_0_INPUTUNIT_HH__
#include <iostream>
#include <vector>
@@ -167,4 +167,4 @@ class InputUnit : public Consumer
std::vector<double> m_num_buffer_reads;
};
-#endif // __MEM_RUBY_NETWORK_GARNET_INPUT_UNIT_HH__
+#endif // __MEM_RUBY_NETWORK_GARNET2_0_INPUTUNIT_HH__
diff --git a/src/mem/ruby/network/garnet2.0/NetworkInterface.hh b/src/mem/ruby/network/garnet2.0/NetworkInterface.hh
index 2dfb2d287..3b77371de 100644
--- a/src/mem/ruby/network/garnet2.0/NetworkInterface.hh
+++ b/src/mem/ruby/network/garnet2.0/NetworkInterface.hh
@@ -31,8 +31,8 @@
*/
-#ifndef __MEM_RUBY_NETWORK_GARNET_NETWORK_INTERFACE_HH__
-#define __MEM_RUBY_NETWORK_GARNET_NETWORK_INTERFACE_HH__
+#ifndef __MEM_RUBY_NETWORK_GARNET2_0_NETWORKINTERFACE_HH__
+#define __MEM_RUBY_NETWORK_GARNET2_0_NETWORKINTERFACE_HH__
#include <iostream>
#include <vector>
@@ -118,4 +118,4 @@ class NetworkInterface : public ClockedObject, public Consumer
void incrementStats(flit *t_flit);
};
-#endif // __MEM_RUBY_NETWORK_GARNET_NETWORK_INTERFACE_HH__
+#endif // __MEM_RUBY_NETWORK_GARNET2_0_NETWORKINTERFACE_HH__
diff --git a/src/mem/ruby/network/garnet2.0/NetworkLink.hh b/src/mem/ruby/network/garnet2.0/NetworkLink.hh
index 10399ec37..98fb7b967 100644
--- a/src/mem/ruby/network/garnet2.0/NetworkLink.hh
+++ b/src/mem/ruby/network/garnet2.0/NetworkLink.hh
@@ -31,8 +31,8 @@
*/
-#ifndef __MEM_RUBY_NETWORK_GARNET_NETWORK_LINK_HH__
-#define __MEM_RUBY_NETWORK_GARNET_NETWORK_LINK_HH__
+#ifndef __MEM_RUBY_NETWORK_GARNET2_0_NETWORKLINK_HH__
+#define __MEM_RUBY_NETWORK_GARNET2_0_NETWORKLINK_HH__
#include <iostream>
#include <vector>
@@ -86,4 +86,4 @@ class NetworkLink : public ClockedObject, public Consumer
std::vector<unsigned int> m_vc_load;
};
-#endif // __MEM_RUBY_NETWORK_GARNET_NETWORK_LINK_HH__
+#endif // __MEM_RUBY_NETWORK_GARNET2_0_NETWORKLINK_HH__
diff --git a/src/mem/ruby/network/garnet2.0/OutVcState.hh b/src/mem/ruby/network/garnet2.0/OutVcState.hh
index b9c008df6..673b20931 100644
--- a/src/mem/ruby/network/garnet2.0/OutVcState.hh
+++ b/src/mem/ruby/network/garnet2.0/OutVcState.hh
@@ -31,8 +31,8 @@
*/
-#ifndef __MEM_RUBY_NETWORK_GARNET_OUTVC_STATE_HH__
-#define __MEM_RUBY_NETWORK_GARNET_OUTVC_STATE_HH__
+#ifndef __MEM_RUBY_NETWORK_GARNET2_0_OUTVCSTATE_HH__
+#define __MEM_RUBY_NETWORK_GARNET2_0_OUTVCSTATE_HH__
#include "mem/ruby/network/garnet2.0/CommonTypes.hh"
#include "mem/ruby/network/garnet2.0/GarnetNetwork.hh"
@@ -67,4 +67,4 @@ class OutVcState
int m_max_credit_count;
};
-#endif // __MEM_RUBY_NETWORK_GARNET_OUTVC_STATE_HH__
+#endif //__MEM_RUBY_NETWORK_GARNET2_0_OUTVCSTATE_HH__
diff --git a/src/mem/ruby/network/garnet2.0/OutputUnit.hh b/src/mem/ruby/network/garnet2.0/OutputUnit.hh
index 7b6d5497c..fba83432d 100644
--- a/src/mem/ruby/network/garnet2.0/OutputUnit.hh
+++ b/src/mem/ruby/network/garnet2.0/OutputUnit.hh
@@ -31,8 +31,8 @@
*/
-#ifndef __MEM_RUBY_NETWORK_GARNET_OUTPUT_UNIT_HH__
-#define __MEM_RUBY_NETWORK_GARNET_OUTPUT_UNIT_HH__
+#ifndef __MEM_RUBY_NETWORK_GARNET2_0_OUTPUTUNIT_HH__
+#define __MEM_RUBY_NETWORK_GARNET2_0_OUTPUTUNIT_HH__
#include <iostream>
#include <vector>
@@ -110,4 +110,4 @@ class OutputUnit : public Consumer
};
-#endif // __MEM_RUBY_NETWORK_GARNET_OUTPUT_UNIT_HH__
+#endif // __MEM_RUBY_NETWORK_GARNET2_0_OUTPUTUNIT_HH__
diff --git a/src/mem/ruby/network/garnet2.0/Router.hh b/src/mem/ruby/network/garnet2.0/Router.hh
index a9ce5f80e..fa118b4e5 100644
--- a/src/mem/ruby/network/garnet2.0/Router.hh
+++ b/src/mem/ruby/network/garnet2.0/Router.hh
@@ -31,8 +31,8 @@
*/
-#ifndef __MEM_RUBY_NETWORK_GARNET_ROUTER_HH__
-#define __MEM_RUBY_NETWORK_GARNET_ROUTER_HH__
+#ifndef __MEM_RUBY_NETWORK_GARNET2_0_ROUTER_HH__
+#define __MEM_RUBY_NETWORK_GARNET2_0_ROUTER_HH__
#include <iostream>
#include <vector>
@@ -137,4 +137,4 @@ class Router : public BasicRouter, public Consumer
Stats::Scalar m_crossbar_activity;
};
-#endif // __MEM_RUBY_NETWORK_GARNET_ROUTER_HH__
+#endif // __MEM_RUBY_NETWORK_GARNET2_0_ROUTER_HH__
diff --git a/src/mem/ruby/network/garnet2.0/RoutingUnit.hh b/src/mem/ruby/network/garnet2.0/RoutingUnit.hh
index 46b0969f3..0623e54e4 100644
--- a/src/mem/ruby/network/garnet2.0/RoutingUnit.hh
+++ b/src/mem/ruby/network/garnet2.0/RoutingUnit.hh
@@ -31,8 +31,8 @@
*/
-#ifndef __MEM_RUBY_NETWORK_GARNET_ROUTING_UNIT_HH__
-#define __MEM_RUBY_NETWORK_GARNET_ROUTING_UNIT_HH__
+#ifndef __MEM_RUBY_NETWORK_GARNET2_0_ROUTINGUNIT_HH__
+#define __MEM_RUBY_NETWORK_GARNET2_0_ROUTINGUNIT_HH__
#include "mem/ruby/common/Consumer.hh"
#include "mem/ruby/common/NetDest.hh"
@@ -86,4 +86,4 @@ class RoutingUnit
std::map<PortDirection, int> m_outports_dirn2idx;
};
-#endif // __MEM_RUBY_NETWORK_GARNET_ROUTING_UNIT_HH__
+#endif // __MEM_RUBY_NETWORK_GARNET2_0_ROUTINGUNIT_HH__
diff --git a/src/mem/ruby/network/garnet2.0/SwitchAllocator.hh b/src/mem/ruby/network/garnet2.0/SwitchAllocator.hh
index 7515b734f..2b16afc78 100644
--- a/src/mem/ruby/network/garnet2.0/SwitchAllocator.hh
+++ b/src/mem/ruby/network/garnet2.0/SwitchAllocator.hh
@@ -31,8 +31,8 @@
*/
-#ifndef __MEM_RUBY_NETWORK_GARNET_SWITCH_ALLOCATOR_HH__
-#define __MEM_RUBY_NETWORK_GARNET_SWITCH_ALLOCATOR_HH__
+#ifndef __MEM_RUBY_NETWORK_GARNET2_0_SWITCHALLOCATOR_HH__
+#define __MEM_RUBY_NETWORK_GARNET2_0_SWITCHALLOCATOR_HH__
#include <iostream>
#include <vector>
@@ -87,4 +87,4 @@ class SwitchAllocator : public Consumer
std::vector<OutputUnit *> m_output_unit;
};
-#endif // __MEM_RUBY_NETWORK_GARNET_SWITCH_ALLOCATOR_HH__
+#endif // __MEM_RUBY_NETWORK_GARNET2_0_SWITCHALLOCATOR_HH__
diff --git a/src/mem/ruby/network/garnet2.0/VirtualChannel.hh b/src/mem/ruby/network/garnet2.0/VirtualChannel.hh
index d5f7687dc..1c927181b 100644
--- a/src/mem/ruby/network/garnet2.0/VirtualChannel.hh
+++ b/src/mem/ruby/network/garnet2.0/VirtualChannel.hh
@@ -31,8 +31,8 @@
*/
-#ifndef __MEM_RUBY_NETWORK_GARNET_VIRTUAL_CHANNEL_HH__
-#define __MEM_RUBY_NETWORK_GARNET_VIRTUAL_CHANNEL_HH__
+#ifndef __MEM_RUBY_NETWORK_GARNET2_0_VIRTUALCHANNEL_HH__
+#define __MEM_RUBY_NETWORK_GARNET2_0_VIRTUALCHANNEL_HH__
#include <utility>
@@ -98,4 +98,4 @@ class VirtualChannel
int m_output_vc;
};
-#endif // __MEM_RUBY_NETWORK_GARNET_VIRTUAL_CHANNEL_HH__
+#endif // __MEM_RUBY_NETWORK_GARNET2_0_VIRTUALCHANNEL_HH__
diff --git a/src/mem/ruby/network/garnet2.0/flit.hh b/src/mem/ruby/network/garnet2.0/flit.hh
index 419450b1c..da582ef4a 100644
--- a/src/mem/ruby/network/garnet2.0/flit.hh
+++ b/src/mem/ruby/network/garnet2.0/flit.hh
@@ -31,8 +31,8 @@
*/
-#ifndef __MEM_RUBY_NETWORK_GARNET_FLIT_HH__
-#define __MEM_RUBY_NETWORK_GARNET_FLIT_HH__
+#ifndef __MEM_RUBY_NETWORK_GARNET2_0_FLIT_HH__
+#define __MEM_RUBY_NETWORK_GARNET2_0_FLIT_HH__
#include <cassert>
#include <iostream>
@@ -121,4 +121,4 @@ operator<<(std::ostream& out, const flit& obj)
return out;
}
-#endif // __MEM_RUBY_NETWORK_GARNET_FLIT_HH__
+#endif // __MEM_RUBY_NETWORK_GARNET2_0_FLIT_HH__
diff --git a/src/mem/ruby/network/garnet2.0/flitBuffer.hh b/src/mem/ruby/network/garnet2.0/flitBuffer.hh
index d98fe8b4f..1c070ea4d 100644
--- a/src/mem/ruby/network/garnet2.0/flitBuffer.hh
+++ b/src/mem/ruby/network/garnet2.0/flitBuffer.hh
@@ -31,8 +31,8 @@
*/
-#ifndef __MEM_RUBY_NETWORK_GARNET_FLIT_BUFFER_HH__
-#define __MEM_RUBY_NETWORK_GARNET_FLIT_BUFFER_HH__
+#ifndef __MEM_RUBY_NETWORK_GARNET2_0_FLITBUFFER_HH__
+#define __MEM_RUBY_NETWORK_GARNET2_0_FLITBUFFER_HH__
#include <algorithm>
#include <iostream>
@@ -91,4 +91,4 @@ operator<<(std::ostream& out, const flitBuffer& obj)
return out;
}
-#endif // __MEM_RUBY_NETWORK_GARNET_FLIT_BUFFER_HH__
+#endif // __MEM_RUBY_NETWORK_GARNET2_0_FLITBUFFER_HH__
diff --git a/src/mem/ruby/network/simple/SimpleLink.hh b/src/mem/ruby/network/simple/SimpleLink.hh
index ed98ec776..3ca2356ba 100644
--- a/src/mem/ruby/network/simple/SimpleLink.hh
+++ b/src/mem/ruby/network/simple/SimpleLink.hh
@@ -26,8 +26,8 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef __MEM_RUBY_NETWORK_SIMPLE_LINK_HH__
-#define __MEM_RUBY_NETWORK_SIMPLE_LINK_HH__
+#ifndef __MEM_RUBY_NETWORK_SIMPLE_SIMPLELINK_HH__
+#define __MEM_RUBY_NETWORK_SIMPLE_SIMPLELINK_HH__
#include <iostream>
#include <string>
@@ -79,4 +79,4 @@ operator<<(std::ostream& out, const SimpleIntLink& obj)
return out;
}
-#endif // __MEM_RUBY_NETWORK_SIMPLE_LINK_HH__
+#endif //__MEM_RUBY_NETWORK_SIMPLE_SIMPLELINK_HH__
diff --git a/src/mem/ruby/slicc_interface/RubyRequest.hh b/src/mem/ruby/slicc_interface/RubyRequest.hh
index 772441b5e..6c84f3823 100644
--- a/src/mem/ruby/slicc_interface/RubyRequest.hh
+++ b/src/mem/ruby/slicc_interface/RubyRequest.hh
@@ -26,8 +26,8 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef __MEM_RUBY_SLICC_INTERFACE_RUBY_REQUEST_HH__
-#define __MEM_RUBY_SLICC_INTERFACE_RUBY_REQUEST_HH__
+#ifndef __MEM_RUBY_SLICC_INTERFACE_RUBYREQUEST_HH__
+#define __MEM_RUBY_SLICC_INTERFACE_RUBYREQUEST_HH__
#include <ostream>
#include <vector>
@@ -165,4 +165,4 @@ operator<<(std::ostream& out, const RubyRequest& obj)
return out;
}
-#endif // __MEM_RUBY_SLICC_INTERFACE_RUBY_REQUEST_HH__
+#endif //__MEM_RUBY_SLICC_INTERFACE_RUBYREQUEST_HH__
diff --git a/src/mem/ruby/slicc_interface/RubySlicc_Util.hh b/src/mem/ruby/slicc_interface/RubySlicc_Util.hh
index 4fe065a3f..e3d4f0b0b 100644
--- a/src/mem/ruby/slicc_interface/RubySlicc_Util.hh
+++ b/src/mem/ruby/slicc_interface/RubySlicc_Util.hh
@@ -31,8 +31,8 @@
* These are the functions that exported to slicc from ruby.
*/
-#ifndef __MEM_RUBY_SLICC_INTERFACE_RUBYSLICCUTIL_HH__
-#define __MEM_RUBY_SLICC_INTERFACE_RUBYSLICCUTIL_HH__
+#ifndef __MEM_RUBY_SLICC_INTERFACE_RUBYSLICC_UTIL_HH__
+#define __MEM_RUBY_SLICC_INTERFACE_RUBYSLICC_UTIL_HH__
#include <cassert>
@@ -183,4 +183,4 @@ countBoolVec(BoolVec bVec)
return count;
}
-#endif // __MEM_RUBY_SLICC_INTERFACE_RUBYSLICCUTIL_HH__
+#endif //__MEM_RUBY_SLICC_INTERFACE_RUBYSLICC_UTIL_HH__
diff --git a/src/mem/ruby/system/CacheRecorder.hh b/src/mem/ruby/system/CacheRecorder.hh
index 822b370e8..7748b4ceb 100644
--- a/src/mem/ruby/system/CacheRecorder.hh
+++ b/src/mem/ruby/system/CacheRecorder.hh
@@ -32,8 +32,8 @@
* time. Also dump the requests to a gziped file.
*/
-#ifndef __MEM_RUBY_RECORDER_CACHERECORDER_HH__
-#define __MEM_RUBY_RECORDER_CACHERECORDER_HH__
+#ifndef __MEM_RUBY_SYSTEM_CACHERECORDER_HH__
+#define __MEM_RUBY_SYSTEM_CACHERECORDER_HH__
#include <vector>
@@ -126,4 +126,4 @@ operator<<(std::ostream& out, const TraceRecord& obj)
return out;
}
-#endif // __MEM_RUBY_RECORDER_CACHERECORDER_HH__
+#endif //__MEM_RUBY_SYSTEM_CACHERECORDER_HH__
diff --git a/src/mem/ruby/system/RubySystem.hh b/src/mem/ruby/system/RubySystem.hh
index 407a253f3..5d10991aa 100644
--- a/src/mem/ruby/system/RubySystem.hh
+++ b/src/mem/ruby/system/RubySystem.hh
@@ -32,8 +32,8 @@
* components of the system
*/
-#ifndef __MEM_RUBY_SYSTEM_SYSTEM_HH__
-#define __MEM_RUBY_SYSTEM_SYSTEM_HH__
+#ifndef __MEM_RUBY_SYSTEM_RUBYSYSTEM_HH__
+#define __MEM_RUBY_SYSTEM_RUBYSYSTEM_HH__
#include "base/callback.hh"
#include "base/output.hh"
@@ -151,4 +151,4 @@ class RubyStatsCallback : public Callback
void process() { m_ruby_system->collateStats(); }
};
-#endif // __MEM_RUBY_SYSTEM_SYSTEM_HH__
+#endif //__MEM_RUBY_SYSTEM_RUBYSYSTEM_HH__
diff --git a/src/mem/ruby/system/VIPERCoalescer.hh b/src/mem/ruby/system/VIPERCoalescer.hh
index af6e44e7f..76241022e 100644
--- a/src/mem/ruby/system/VIPERCoalescer.hh
+++ b/src/mem/ruby/system/VIPERCoalescer.hh
@@ -33,8 +33,8 @@
* Author: Sooraj Puthoor
*/
-#ifndef __MEM_RUBY_SYSTEM_VI_COALESCER_HH__
-#define __MEM_RUBY_SYSTEM_VI_COALESCER_HH__
+#ifndef __MEM_RUBY_SYSTEM_VIPERCOALESCER_HH__
+#define __MEM_RUBY_SYSTEM_VIPERCOALESCER_HH__
#include <iostream>
@@ -71,5 +71,4 @@ class VIPERCoalescer : public GPUCoalescer
uint64_t m_max_inv_per_cycle;
uint64_t m_max_wb_per_cycle;
};
-#endif // __MEM_RUBY_SYSTEM_VI_COALESCER_HH__
-
+#endif //__MEM_RUBY_SYSTEM_VIPERCOALESCER_HH__
diff --git a/src/mem/simple_mem.hh b/src/mem/simple_mem.hh
index 6636f2c90..307981b80 100644
--- a/src/mem/simple_mem.hh
+++ b/src/mem/simple_mem.hh
@@ -46,8 +46,8 @@
* SimpleMemory declaration
*/
-#ifndef __SIMPLE_MEMORY_HH__
-#define __SIMPLE_MEMORY_HH__
+#ifndef __MEM_SIMPLE_MEMORY_HH__
+#define __MEM_SIMPLE_MEMORY_HH__
#include <list>
@@ -203,4 +203,4 @@ class SimpleMemory : public AbstractMemory
};
-#endif //__SIMPLE_MEMORY_HH__
+#endif //__MEM_SIMPLE_MEMORY_HH__