summaryrefslogtreecommitdiff
path: root/src/mem/ruby/common
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/ruby/common
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/ruby/common')
-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
4 files changed, 16 insertions, 6 deletions
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__