* 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;
* 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
* Miss Status and Handling Register (MSHR) definitions.
*/
+#include "mem/cache/mshr.hh"
+
#include <algorithm>
#include <cassert>
#include <string>
#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;
* 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"
* 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;
#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"
#include <cassert>
-
/**
* An associative set of cache blocks.
*/
* 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;
#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"
* 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)
* 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)