diff options
author | Nathan Binkert <nate@binkert.org> | 2009-05-17 14:34:52 -0700 |
---|---|---|
committer | Nathan Binkert <nate@binkert.org> | 2009-05-17 14:34:52 -0700 |
commit | 8d2e51c7f52670055ffe97e221302561b87015a2 (patch) | |
tree | 792d211d603bd9155dee00861d1ce92d3ba2f09d /src/mem/cache | |
parent | 709d859530325f28b904001f5a55dbdec2bad199 (diff) | |
download | gem5-8d2e51c7f52670055ffe97e221302561b87015a2.tar.xz |
includes: sort includes again
Diffstat (limited to 'src/mem/cache')
-rw-r--r-- | src/mem/cache/cache_impl.hh | 9 | ||||
-rw-r--r-- | src/mem/cache/mshr.cc | 10 | ||||
-rw-r--r-- | src/mem/cache/tags/fa_lru.cc | 5 | ||||
-rw-r--r-- | src/mem/cache/tags/fa_lru.hh | 10 | ||||
-rw-r--r-- | src/mem/cache/tags/iic_repl/gen.cc | 2 | ||||
-rw-r--r-- | src/mem/cache/tags/iic_repl/repl.hh | 3 | ||||
-rw-r--r-- | src/mem/cache/tags/lru.hh | 12 |
7 files changed, 23 insertions, 28 deletions
diff --git a/src/mem/cache/cache_impl.hh b/src/mem/cache/cache_impl.hh index cf738a340..0940893bc 100644 --- a/src/mem/cache/cache_impl.hh +++ b/src/mem/cache/cache_impl.hh @@ -37,18 +37,15 @@ * Cache definitions. */ -#include "base/types.hh" #include "base/fast_alloc.hh" #include "base/misc.hh" #include "base/range.hh" - -#include "mem/cache/cache.hh" +#include "base/types.hh" #include "mem/cache/blk.hh" +#include "mem/cache/cache.hh" #include "mem/cache/mshr.hh" #include "mem/cache/prefetch/base.hh" - -#include "sim/sim_exit.hh" // for SimExitEvent - +#include "sim/sim_exit.hh" template<class TagStore> Cache<TagStore>::Cache(const Params *p, TagStore *tags, BasePrefetcher *pf) diff --git a/src/mem/cache/mshr.cc b/src/mem/cache/mshr.cc index ee267feb8..726253c62 100644 --- a/src/mem/cache/mshr.cc +++ b/src/mem/cache/mshr.cc @@ -34,16 +34,16 @@ * Miss Status and Handling Register (MSHR) definitions. */ -#include <assert.h> +#include <algorithm> +#include <cassert> #include <string> #include <vector> -#include <algorithm> -#include "mem/cache/mshr.hh" -#include "sim/core.hh" // for curTick -#include "base/types.hh" #include "base/misc.hh" +#include "base/types.hh" #include "mem/cache/cache.hh" +#include "mem/cache/mshr.hh" +#include "sim/core.hh" using namespace std; diff --git a/src/mem/cache/tags/fa_lru.cc b/src/mem/cache/tags/fa_lru.cc index f92d4cb37..0e0121f67 100644 --- a/src/mem/cache/tags/fa_lru.cc +++ b/src/mem/cache/tags/fa_lru.cc @@ -33,13 +33,12 @@ * Definitions a fully associative LRU tagstore. */ +#include <cassert> #include <sstream> -#include <assert.h> - -#include "mem/cache/tags/fa_lru.hh" #include "base/intmath.hh" #include "base/misc.hh" +#include "mem/cache/tags/fa_lru.hh" using namespace std; diff --git a/src/mem/cache/tags/fa_lru.hh b/src/mem/cache/tags/fa_lru.hh index 4eab10c49..23d09d709 100644 --- a/src/mem/cache/tags/fa_lru.hh +++ b/src/mem/cache/tags/fa_lru.hh @@ -33,15 +33,15 @@ * Declaration of a fully associative LRU tag store. */ -#ifndef __FA_LRU_HH__ -#define __FA_LRU_HH__ +#ifndef __MEM_CACHE_TAGS_FA_LRU_HH__ +#define __MEM_CACHE_TAGS_FA_LRU_HH__ #include <list> -#include "mem/cache/blk.hh" -#include "mem/packet.hh" #include "base/hashmap.hh" +#include "mem/cache/blk.hh" #include "mem/cache/tags/base.hh" +#include "mem/packet.hh" /** * A fully associative cache block. @@ -281,4 +281,4 @@ public: } }; -#endif +#endif // __MEM_CACHE_TAGS_FA_LRU_HH__ diff --git a/src/mem/cache/tags/iic_repl/gen.cc b/src/mem/cache/tags/iic_repl/gen.cc index 1c19420da..1008c3a7c 100644 --- a/src/mem/cache/tags/iic_repl/gen.cc +++ b/src/mem/cache/tags/iic_repl/gen.cc @@ -37,10 +37,10 @@ #include <string> #include "base/misc.hh" +#include "base/types.hh" #include "mem/cache/tags/iic.hh" #include "mem/cache/tags/iic_repl/gen.hh" #include "params/GenRepl.hh" -#include "base/types.hh" using namespace std; diff --git a/src/mem/cache/tags/iic_repl/repl.hh b/src/mem/cache/tags/iic_repl/repl.hh index 91a4cc309..c792e3350 100644 --- a/src/mem/cache/tags/iic_repl/repl.hh +++ b/src/mem/cache/tags/iic_repl/repl.hh @@ -41,11 +41,10 @@ #include <string> #include <list> -#include "cpu/smt.hh" #include "base/types.hh" +#include "cpu/smt.hh" #include "sim/sim_object.hh" - class IIC; /** diff --git a/src/mem/cache/tags/lru.hh b/src/mem/cache/tags/lru.hh index 7b6e95e84..466095ec9 100644 --- a/src/mem/cache/tags/lru.hh +++ b/src/mem/cache/tags/lru.hh @@ -33,16 +33,16 @@ * Declaration of a LRU tag store. */ -#ifndef __LRU_HH__ -#define __LRU_HH__ +#ifndef __MEM_CACHE_TAGS_LRU_HH__ +#define __MEM_CACHE_TAGS_LRU_HH__ +#include <cassert> #include <cstring> #include <list> -#include "mem/cache/blk.hh" // base class -#include "mem/packet.hh" // for inlined functions -#include <assert.h> +#include "mem/cache/blk.hh" #include "mem/cache/tags/base.hh" +#include "mem/packet.hh" class BaseCache; @@ -261,4 +261,4 @@ public: virtual void cleanupRefs(); }; -#endif +#endif // __MEM_CACHE_TAGS_LRU_HH__ |