diff options
Diffstat (limited to 'src/mem/ruby')
-rw-r--r-- | src/mem/ruby/common/Debug.hh | 7 | ||||
-rw-r--r-- | src/mem/ruby/common/Global.hh | 6 | ||||
-rw-r--r-- | src/mem/ruby/network/orion/power_ll.cc | 4 | ||||
-rw-r--r-- | src/mem/ruby/network/orion/power_utils.cc | 7 |
4 files changed, 13 insertions, 11 deletions
diff --git a/src/mem/ruby/common/Debug.hh b/src/mem/ruby/common/Debug.hh index 8548e9772..ad88431ef 100644 --- a/src/mem/ruby/common/Debug.hh +++ b/src/mem/ruby/common/Debug.hh @@ -31,13 +31,14 @@ * $Id$ */ -#ifndef DEBUG_H -#define DEBUG_H +#ifndef __MEM_RUBY_DEBUG_HH__ +#define __MEM_RUBY_DEBUG_HH__ #include <unistd.h> #include <iostream> #include "config/ruby_debug.hh" +#include "mem/ruby/common/Global.hh" extern std::ostream * debug_cout_ptr; @@ -302,5 +303,5 @@ const bool ASSERT_FLAG = true; }\ } -#endif //DEBUG_H +#endif // __MEM_RUBY_DEBUG_HH__ diff --git a/src/mem/ruby/common/Global.hh b/src/mem/ruby/common/Global.hh index de2d06e0e..2f42aabcb 100644 --- a/src/mem/ruby/common/Global.hh +++ b/src/mem/ruby/common/Global.hh @@ -32,8 +32,8 @@ * * */ -#ifndef GLOBAL_H -#define GLOBAL_H +#ifndef __MEM_RUBY_GLOBAL_HH__ +#define __MEM_RUBY_GLOBAL_HH__ #ifdef SINGLE_LEVEL_CACHE const bool TWO_LEVEL_CACHE = false; @@ -105,5 +105,5 @@ extern inline int max_tokens() } -#endif //GLOBAL_H +#endif // __MEM_RUBY_GLOBAL_HH__ diff --git a/src/mem/ruby/network/orion/power_ll.cc b/src/mem/ruby/network/orion/power_ll.cc index aab98cc8c..864336034 100644 --- a/src/mem/ruby/network/orion/power_ll.cc +++ b/src/mem/ruby/network/orion/power_ll.cc @@ -67,8 +67,8 @@ * SOFTWARE. *------------------------------------------------------------*/ -#include <math.h> -#include <assert.h> +#include <cassert> +#include <cmath> #include "mem/ruby/network/orion/parm_technology.hh" #include "mem/ruby/network/orion/SIM_port.hh" diff --git a/src/mem/ruby/network/orion/power_utils.cc b/src/mem/ruby/network/orion/power_utils.cc index be308be88..bc69c3cc7 100644 --- a/src/mem/ruby/network/orion/power_utils.cc +++ b/src/mem/ruby/network/orion/power_utils.cc @@ -26,11 +26,12 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#include <stdio.h> +#include <cassert> +#include <cmath> +#include <cstdio> + #include "mem/ruby/network/orion/parm_technology.hh" #include "mem/ruby/network/orion/power_utils.hh" -#include <assert.h> -#include <math.h> /* ----------- from SIM_power_util.c ------------ */ |