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:
Nikos Nikoleris 2016-05-26 11:56:24 +01:00
parent f9d62b63e1
commit a69a0f33cb
11 changed files with 21 additions and 14 deletions

View file

@ -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;

View file

@ -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

View file

@ -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;

View file

@ -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"

View file

@ -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;

View file

@ -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"

View file

@ -50,7 +50,6 @@
#include <cassert>
/**
* An associative set of cache blocks.
*/

View file

@ -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;

View file

@ -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"

View file

@ -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)

View file

@ -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)