summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Reinhardt <stever@eecs.umich.edu>2007-07-14 13:28:52 -0700
committerSteve Reinhardt <stever@eecs.umich.edu>2007-07-14 13:28:52 -0700
commit15a51d0cae01defc116c9a937bfa8c4577f72826 (patch)
tree7c0de007b98fb383b9fc3a81123d6071cd5f5852
parentabd194df5c2dfd0ebf608c5d59196a08ca0ef630 (diff)
downloadgem5-15a51d0cae01defc116c9a937bfa8c4577f72826.tar.xz
Add CacheRepl trace flag and move a couple DPRINTFs to it.
--HG-- extra : convert_revision : 31724d19ebdf2cdc2a2bafff83d17845b3a0b183
-rw-r--r--src/base/traceflags.py1
-rw-r--r--src/mem/cache/tags/lru.cc4
2 files changed, 3 insertions, 2 deletions
diff --git a/src/base/traceflags.py b/src/base/traceflags.py
index 70fadb210..8573eb9bf 100644
--- a/src/base/traceflags.py
+++ b/src/base/traceflags.py
@@ -47,6 +47,7 @@ baseFlags = [
'BusBridge',
'Cache',
'CachePort',
+ 'CacheRepl',
'Chains',
'Checker',
'Clock',
diff --git a/src/mem/cache/tags/lru.cc b/src/mem/cache/tags/lru.cc
index 3269aa4db..0a8587c20 100644
--- a/src/mem/cache/tags/lru.cc
+++ b/src/mem/cache/tags/lru.cc
@@ -173,7 +173,7 @@ LRU::findBlock(Addr addr, int &lat)
if (blk != NULL) {
// move this block to head of the MRU list
sets[set].moveToHead(blk);
- DPRINTF(Cache, "set %x: moving blk %x to MRU\n",
+ DPRINTF(CacheRepl, "set %x: moving blk %x to MRU\n",
set, regenerateBlkAddr(tag, set));
if (blk->whenReady > curTick
&& blk->whenReady - curTick > hitLatency) {
@@ -208,7 +208,7 @@ LRU::findReplacement(Addr addr, PacketList &writebacks)
++sampledRefs;
blk->refCount = 0;
- DPRINTF(Cache, "set %x: selecting blk %x for replacement\n",
+ DPRINTF(CacheRepl, "set %x: selecting blk %x for replacement\n",
set, regenerateBlkAddr(blk->tag, set));
} else if (!blk->isTouched) {
tagsInUse++;