mem: fix headers include order in the cache related classes
Change-Id: Ia57cc104978861ab342720654e408dbbfcbe4b69 Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
This commit is contained in:
parent
f9d62b63e1
commit
a69a0f33cb
11 changed files with 21 additions and 14 deletions
7
src/mem/cache/base.cc
vendored
7
src/mem/cache/base.cc
vendored
|
@ -45,14 +45,15 @@
|
|||
* Definition of BaseCache functions.
|
||||
*/
|
||||
|
||||
#include "mem/cache/base.hh"
|
||||
|
||||
#include "debug/Cache.hh"
|
||||
#include "debug/Drain.hh"
|
||||
#include "mem/cache/cache.hh"
|
||||
#include "mem/cache/mshr.hh"
|
||||
#include "mem/cache/tags/fa_lru.hh"
|
||||
#include "mem/cache/tags/lru.hh"
|
||||
#include "mem/cache/tags/random_repl.hh"
|
||||
#include "mem/cache/base.hh"
|
||||
#include "mem/cache/cache.hh"
|
||||
#include "mem/cache/mshr.hh"
|
||||
#include "sim/full_system.hh"
|
||||
|
||||
using namespace std;
|
||||
|
|
3
src/mem/cache/blk.cc
vendored
3
src/mem/cache/blk.cc
vendored
|
@ -38,9 +38,10 @@
|
|||
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include "base/cprintf.hh"
|
||||
#include "mem/cache/blk.hh"
|
||||
|
||||
#include "base/cprintf.hh"
|
||||
|
||||
void
|
||||
CacheBlkPrintWrapper::print(std::ostream &os, int verbosity,
|
||||
const std::string &prefix) const
|
||||
|
|
3
src/mem/cache/mshr.cc
vendored
3
src/mem/cache/mshr.cc
vendored
|
@ -47,6 +47,8 @@
|
|||
* Miss Status and Handling Register (MSHR) definitions.
|
||||
*/
|
||||
|
||||
#include "mem/cache/mshr.hh"
|
||||
|
||||
#include <algorithm>
|
||||
#include <cassert>
|
||||
#include <string>
|
||||
|
@ -56,7 +58,6 @@
|
|||
#include "base/types.hh"
|
||||
#include "debug/Cache.hh"
|
||||
#include "mem/cache/cache.hh"
|
||||
#include "mem/cache/mshr.hh"
|
||||
#include "sim/core.hh"
|
||||
|
||||
using namespace std;
|
||||
|
|
3
src/mem/cache/tags/base.cc
vendored
3
src/mem/cache/tags/base.cc
vendored
|
@ -46,8 +46,9 @@
|
|||
* Definitions of BaseTags.
|
||||
*/
|
||||
|
||||
#include "cpu/smt.hh" //maxThreadsPerCPU
|
||||
#include "mem/cache/tags/base.hh"
|
||||
|
||||
#include "cpu/smt.hh" //maxThreadsPerCPU
|
||||
#include "mem/cache/base.hh"
|
||||
#include "sim/sim_exit.hh"
|
||||
|
||||
|
|
3
src/mem/cache/tags/base_set_assoc.cc
vendored
3
src/mem/cache/tags/base_set_assoc.cc
vendored
|
@ -45,10 +45,11 @@
|
|||
* Definitions of a base set associative tag store.
|
||||
*/
|
||||
|
||||
#include "mem/cache/tags/base_set_assoc.hh"
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "base/intmath.hh"
|
||||
#include "mem/cache/tags/base_set_assoc.hh"
|
||||
#include "sim/core.hh"
|
||||
|
||||
using namespace std;
|
||||
|
|
4
src/mem/cache/tags/base_set_assoc.hh
vendored
4
src/mem/cache/tags/base_set_assoc.hh
vendored
|
@ -52,10 +52,10 @@
|
|||
#include <cstring>
|
||||
#include <list>
|
||||
|
||||
#include "mem/cache/tags/base.hh"
|
||||
#include "mem/cache/tags/cacheset.hh"
|
||||
#include "mem/cache/base.hh"
|
||||
#include "mem/cache/blk.hh"
|
||||
#include "mem/cache/tags/base.hh"
|
||||
#include "mem/cache/tags/cacheset.hh"
|
||||
#include "mem/packet.hh"
|
||||
#include "params/BaseSetAssoc.hh"
|
||||
|
||||
|
|
1
src/mem/cache/tags/cacheset.hh
vendored
1
src/mem/cache/tags/cacheset.hh
vendored
|
@ -50,7 +50,6 @@
|
|||
|
||||
#include <cassert>
|
||||
|
||||
|
||||
/**
|
||||
* An associative set of cache blocks.
|
||||
*/
|
||||
|
|
3
src/mem/cache/tags/fa_lru.cc
vendored
3
src/mem/cache/tags/fa_lru.cc
vendored
|
@ -45,12 +45,13 @@
|
|||
* Definitions a fully associative LRU tagstore.
|
||||
*/
|
||||
|
||||
#include "mem/cache/tags/fa_lru.hh"
|
||||
|
||||
#include <cassert>
|
||||
#include <sstream>
|
||||
|
||||
#include "base/intmath.hh"
|
||||
#include "base/misc.hh"
|
||||
#include "mem/cache/tags/fa_lru.hh"
|
||||
|
||||
using namespace std;
|
||||
|
||||
|
|
2
src/mem/cache/tags/fa_lru.hh
vendored
2
src/mem/cache/tags/fa_lru.hh
vendored
|
@ -51,8 +51,8 @@
|
|||
#include <list>
|
||||
#include <unordered_map>
|
||||
|
||||
#include "mem/cache/tags/base.hh"
|
||||
#include "mem/cache/blk.hh"
|
||||
#include "mem/cache/tags/base.hh"
|
||||
#include "mem/packet.hh"
|
||||
#include "params/FALRU.hh"
|
||||
|
||||
|
|
3
src/mem/cache/tags/lru.cc
vendored
3
src/mem/cache/tags/lru.cc
vendored
|
@ -45,8 +45,9 @@
|
|||
* Definitions of a LRU tag store.
|
||||
*/
|
||||
|
||||
#include "debug/CacheRepl.hh"
|
||||
#include "mem/cache/tags/lru.hh"
|
||||
|
||||
#include "debug/CacheRepl.hh"
|
||||
#include "mem/cache/base.hh"
|
||||
|
||||
LRU::LRU(const Params *p)
|
||||
|
|
3
src/mem/cache/tags/random_repl.cc
vendored
3
src/mem/cache/tags/random_repl.cc
vendored
|
@ -33,9 +33,10 @@
|
|||
* Definitions of a random replacement tag store.
|
||||
*/
|
||||
|
||||
#include "mem/cache/tags/random_repl.hh"
|
||||
|
||||
#include "base/random.hh"
|
||||
#include "debug/CacheRepl.hh"
|
||||
#include "mem/cache/tags/random_repl.hh"
|
||||
#include "mem/cache/base.hh"
|
||||
|
||||
RandomRepl::RandomRepl(const Params *p)
|
||||
|
|
Loading…
Reference in a new issue