changeset 9aed64c9f10f in /z/repo/m5
details: http://repo.m5sim.org/m5?cmd=changeset;node=9aed64c9f10f
description:
includes: use base/types.hh not inttypes.h or stdint.h
diffstat:
14 files changed, 16 insertions(+), 16 deletions(-)
src/arch/sparc/types.hh | 2 +-
src/arch/x86/cpuid.hh | 2 +-
src/arch/x86/types.hh | 2 +-
src/base/bitfield.hh | 2 +-
src/base/bitunion.hh | 2 +-
src/base/compression/base.hh | 2 +-
src/kern/linux/linux.hh | 3 ++-
src/kern/operatingsystem.hh | 3 +--
src/kern/solaris/solaris.hh | 4 ++--
src/mem/bridge.hh | 2 +-
src/mem/bus.hh | 2 +-
src/mem/cache/base.hh | 2 +-
src/mem/port.hh | 2 +-
src/sim/syscallreturn.hh | 2 +-
diffs (208 lines):
diff -r 1ec0ec8933ae -r 9aed64c9f10f src/arch/sparc/types.hh
--- a/src/arch/sparc/types.hh Sun May 17 14:34:50 2009 -0700
+++ b/src/arch/sparc/types.hh Sun May 17 14:34:51 2009 -0700
@@ -31,8 +31,8 @@
#ifndef __ARCH_SPARC_TYPES_HH__
#define __ARCH_SPARC_TYPES_HH__
-#include <inttypes.h>
#include "base/bigint.hh"
+#include "base/types.hh"
namespace SparcISA
{
diff -r 1ec0ec8933ae -r 9aed64c9f10f src/arch/x86/cpuid.hh
--- a/src/arch/x86/cpuid.hh Sun May 17 14:34:50 2009 -0700
+++ b/src/arch/x86/cpuid.hh Sun May 17 14:34:51 2009 -0700
@@ -31,7 +31,7 @@
#ifndef __ARCH_X86_CPUID_HH__
#define __ARCH_X86_CPUID_HH__
-#include <inttypes.h>
+#include "base/types.hh"
class ThreadContext;
diff -r 1ec0ec8933ae -r 9aed64c9f10f src/arch/x86/types.hh
--- a/src/arch/x86/types.hh Sun May 17 14:34:50 2009 -0700
+++ b/src/arch/x86/types.hh Sun May 17 14:34:51 2009 -0700
@@ -58,11 +58,11 @@
#ifndef __ARCH_X86_TYPES_HH__
#define __ARCH_X86_TYPES_HH__
-#include <inttypes.h>
#include <iostream>
#include "base/bitunion.hh"
#include "base/cprintf.hh"
+#include "base/types.hh"
namespace X86ISA
{
diff -r 1ec0ec8933ae -r 9aed64c9f10f src/base/bitfield.hh
--- a/src/base/bitfield.hh Sun May 17 14:34:50 2009 -0700
+++ b/src/base/bitfield.hh Sun May 17 14:34:51 2009 -0700
@@ -32,7 +32,7 @@
#ifndef __BASE_BITFIELD_HH__
#define __BASE_BITFIELD_HH__
-#include <inttypes.h>
+#include "base/types.hh"
/**
* Generate a 64-bit mask of 'nbits' 1s, right justified.
diff -r 1ec0ec8933ae -r 9aed64c9f10f src/base/bitunion.hh
--- a/src/base/bitunion.hh Sun May 17 14:34:50 2009 -0700
+++ b/src/base/bitunion.hh Sun May 17 14:34:51 2009 -0700
@@ -31,8 +31,8 @@
#ifndef __BASE_BITUNION_HH__
#define __BASE_BITUNION_HH__
-#include <inttypes.h>
#include "base/bitfield.hh"
+#include "base/types.hh"
// The following implements the BitUnion system of defining bitfields
//on top of an underlying class. This is done through the pervasive use of
diff -r 1ec0ec8933ae -r 9aed64c9f10f src/base/compression/base.hh
--- a/src/base/compression/base.hh Sun May 17 14:34:50 2009 -0700
+++ b/src/base/compression/base.hh Sun May 17 14:34:51 2009 -0700
@@ -37,7 +37,7 @@
* This file defines a base (abstract virtual) compression algorithm object.
*/
-#include <inttypes.h>
+#include "base/types.hh"
/**
* Abstract virtual compression algorithm object.
diff -r 1ec0ec8933ae -r 9aed64c9f10f src/kern/linux/linux.hh
--- a/src/kern/linux/linux.hh Sun May 17 14:34:50 2009 -0700
+++ b/src/kern/linux/linux.hh Sun May 17 14:34:51 2009 -0700
@@ -30,6 +30,8 @@
#ifndef __LINUX_HH__
#define __LINUX_HH__
+
+#include "base/types.hh"
#include "config/full_system.hh"
#if FULL_SYSTEM
@@ -38,7 +40,6 @@
#else //!FULL_SYSTEM
-#include <inttypes.h>
#include <string>
#include "kern/operatingsystem.hh"
diff -r 1ec0ec8933ae -r 9aed64c9f10f src/kern/operatingsystem.hh
--- a/src/kern/operatingsystem.hh Sun May 17 14:34:50 2009 -0700
+++ b/src/kern/operatingsystem.hh Sun May 17 14:34:51 2009 -0700
@@ -31,10 +31,9 @@
#ifndef __KERN_OPERATINGSYSTEM_HH__
#define __KERN_OPERATINGSYSTEM_HH__
+#include "base/types.hh"
#include "config/full_system.hh"
-#include <inttypes.h>
-
#if FULL_SYSTEM
class OperatingSystem {};
diff -r 1ec0ec8933ae -r 9aed64c9f10f src/kern/solaris/solaris.hh
--- a/src/kern/solaris/solaris.hh Sun May 17 14:34:50 2009 -0700
+++ b/src/kern/solaris/solaris.hh Sun May 17 14:34:51 2009 -0700
@@ -30,6 +30,8 @@
#ifndef __SOLARIS_HH__
#define __SOLARIS_HH__
+
+#include "base/types.hh"
#include "config/full_system.hh"
#if FULL_SYSTEM
@@ -38,8 +40,6 @@
#else //!FULL_SYSTEM
-#include <inttypes.h>
-
#include "kern/operatingsystem.hh"
class TranslatingPort;
diff -r 1ec0ec8933ae -r 9aed64c9f10f src/mem/bridge.hh
--- a/src/mem/bridge.hh Sun May 17 14:34:50 2009 -0700
+++ b/src/mem/bridge.hh Sun May 17 14:34:51 2009 -0700
@@ -39,10 +39,10 @@
#include <string>
#include <list>
-#include <inttypes.h>
#include <queue>
#include "base/fast_alloc.hh"
+#include "base/types.hh"
#include "mem/mem_object.hh"
#include "mem/packet.hh"
#include "mem/port.hh"
diff -r 1ec0ec8933ae -r 9aed64c9f10f src/mem/bus.hh
--- a/src/mem/bus.hh Sun May 17 14:34:50 2009 -0700
+++ b/src/mem/bus.hh Sun May 17 14:34:51 2009 -0700
@@ -40,11 +40,11 @@
#include <string>
#include <set>
#include <list>
-#include <inttypes.h>
#include "base/range.hh"
#include "base/hashmap.hh"
#include "base/range_map.hh"
+#include "base/types.hh"
#include "mem/mem_object.hh"
#include "mem/packet.hh"
#include "mem/port.hh"
diff -r 1ec0ec8933ae -r 9aed64c9f10f src/mem/cache/base.hh
--- a/src/mem/cache/base.hh Sun May 17 14:34:50 2009 -0700
+++ b/src/mem/cache/base.hh Sun May 17 14:34:51 2009 -0700
@@ -42,11 +42,11 @@
#include <string>
#include <list>
#include <algorithm>
-#include <inttypes.h>
#include "base/misc.hh"
#include "base/statistics.hh"
#include "base/trace.hh"
+#include "base/types.hh"
#include "mem/cache/mshr_queue.hh"
#include "mem/mem_object.hh"
#include "mem/packet.hh"
diff -r 1ec0ec8933ae -r 9aed64c9f10f src/mem/port.hh
--- a/src/mem/port.hh Sun May 17 14:34:50 2009 -0700
+++ b/src/mem/port.hh Sun May 17 14:34:51 2009 -0700
@@ -41,10 +41,10 @@
#define __MEM_PORT_HH__
#include <list>
-#include <inttypes.h>
#include "base/misc.hh"
#include "base/range.hh"
+#include "base/types.hh"
#include "mem/packet.hh"
#include "mem/request.hh"
#include "sim/eventq.hh"
diff -r 1ec0ec8933ae -r 9aed64c9f10f src/sim/syscallreturn.hh
--- a/src/sim/syscallreturn.hh Sun May 17 14:34:50 2009 -0700
+++ b/src/sim/syscallreturn.hh Sun May 17 14:34:51 2009 -0700
@@ -31,7 +31,7 @@
#ifndef __SIM_SYSCALLRETURN_HH__
#define __SIM_SYSCALLRETURN_HH__
-#include <inttypes.h>
+#include "base/types.hh"
class SyscallReturn
{
_______________________________________________
m5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/m5-dev