diff --git a/src/mem/cache/SConscript b/src/mem/cache/SConscript index f07a918665..0150692969 100644 --- a/src/mem/cache/SConscript +++ b/src/mem/cache/SConscript @@ -46,10 +46,11 @@ DebugFlag('CacheRepl') DebugFlag('CacheTags') DebugFlag('CacheVerbose') DebugFlag('HWPrefetch') +DebugFlag('MSHR') # CacheTags is so outrageously verbose, printing the cache's entire tag # array on each timing access, that you should probably have to ask for # it explicitly even above and beyond CacheAll. CompoundFlag('CacheAll', ['Cache', 'CacheComp', 'CachePort', 'CacheRepl', - 'CacheVerbose', 'HWPrefetch']) + 'CacheVerbose', 'HWPrefetch', 'MSHR']) diff --git a/src/mem/cache/mshr.cc b/src/mem/cache/mshr.cc index 9dae03de0d..bb4e8dfdba 100644 --- a/src/mem/cache/mshr.cc +++ b/src/mem/cache/mshr.cc @@ -52,7 +52,7 @@ #include "base/logging.hh" #include "base/trace.hh" #include "base/types.hh" -#include "debug/Cache.hh" +#include "debug/MSHR.hh" #include "mem/cache/base.hh" #include "mem/request.hh" #include "sim/core.hh" @@ -184,13 +184,13 @@ replaceUpgrade(PacketPtr pkt) if (pkt->cmd == MemCmd::UpgradeReq) { pkt->cmd = MemCmd::ReadExReq; - DPRINTF(Cache, "Replacing UpgradeReq with ReadExReq\n"); + DPRINTF(MSHR, "Replacing UpgradeReq with ReadExReq\n"); } else if (pkt->cmd == MemCmd::SCUpgradeReq) { pkt->cmd = MemCmd::SCUpgradeFailReq; - DPRINTF(Cache, "Replacing SCUpgradeReq with SCUpgradeFailReq\n"); + DPRINTF(MSHR, "Replacing SCUpgradeReq with SCUpgradeFailReq\n"); } else if (pkt->cmd == MemCmd::StoreCondReq) { pkt->cmd = MemCmd::StoreCondFailReq; - DPRINTF(Cache, "Replacing StoreCondReq with StoreCondFailReq\n"); + DPRINTF(MSHR, "Replacing StoreCondReq with StoreCondFailReq\n"); } if (!has_data) { @@ -411,7 +411,7 @@ MSHR::allocateTarget(PacketPtr pkt, Tick whenReady, Counter _order, bool MSHR::handleSnoop(PacketPtr pkt, Counter _order) { - DPRINTF(Cache, "%s for %s\n", __func__, pkt->print()); + DPRINTF(MSHR, "%s for %s\n", __func__, pkt->print()); // when we snoop packets the needsWritable and isInvalidate flags // should always be the same, however, this assumes that we never