summaryrefslogtreecommitdiff
path: root/src/mem/bus.cc
diff options
context:
space:
mode:
authorRon Dreslinski <rdreslin@umich.edu>2006-10-10 22:50:36 -0400
committerRon Dreslinski <rdreslin@umich.edu>2006-10-10 22:50:36 -0400
commit1de8eae43a5310ff6e6b76ef0554c08800ac01ed (patch)
tree5608f789e75fc4c6baa47e59923f662a65c796f2 /src/mem/bus.cc
parent27c59dc370f2f851a8426d6024fa4d2acb296238 (diff)
downloadgem5-1de8eae43a5310ff6e6b76ef0554c08800ac01ed.tar.xz
Debugging info
src/base/traceflags.py: Add new flags for cacheport src/mem/bus.cc: Add debugging info src/mem/cache/base_cache.cc: Add debuggin info --HG-- extra : convert_revision : a6c4b452466a8e0b50a86e886833cb6e29edc748
Diffstat (limited to 'src/mem/bus.cc')
-rw-r--r--src/mem/bus.cc11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/mem/bus.cc b/src/mem/bus.cc
index 3efaa93ac..c475f6d8f 100644
--- a/src/mem/bus.cc
+++ b/src/mem/bus.cc
@@ -95,6 +95,7 @@ Bus::recvTiming(Packet *pkt)
// one, put this device on the retry list.
if (tickNextIdle > curTick ||
(retryList.size() && (!inRetry || pktPort != retryList.front()))) {
+ DPRINTF(Bus, "Adding RETRY for %i\n", pktPort);
addToRetryList(pktPort);
return false;
}
@@ -108,6 +109,7 @@ Bus::recvTiming(Packet *pkt)
if (pkt->flags & SATISFIED) {
//Cache-Cache transfer occuring
if (inRetry) {
+ DPRINTF(Bus, "Removing RETRY %i\n", retryList.front());
retryList.pop_front();
inRetry = false;
}
@@ -116,6 +118,7 @@ Bus::recvTiming(Packet *pkt)
port = findPort(pkt->getAddr(), pkt->getSrc());
} else {
//Snoop didn't succeed
+ DPRINTF(Bus, "Snoop caused adding to RETRY list %i\n", pktPort);
addToRetryList(pktPort);
return false;
}
@@ -181,6 +184,7 @@ Bus::recvTiming(Packet *pkt)
// Packet was successfully sent. Return true.
// Also take care of retries
if (inRetry) {
+ DPRINTF(Bus, "Remove retry from list %i\n", retryList.front());
retryList.pop_front();
inRetry = false;
}
@@ -188,6 +192,7 @@ Bus::recvTiming(Packet *pkt)
}
// Packet not successfully sent. Leave or put it on the retry list.
+ DPRINTF(Bus, "Adding a retry to RETRY list %i\n", pktPort);
addToRetryList(pktPort);
return false;
}
@@ -195,10 +200,12 @@ Bus::recvTiming(Packet *pkt)
void
Bus::recvRetry(int id)
{
+ DPRINTF(Bus, "Received a retry\n");
// If there's anything waiting...
if (retryList.size()) {
//retryingPort = retryList.front();
inRetry = true;
+ DPRINTF(Bus, "Sending a retry\n");
retryList.front()->sendRetry();
// If inRetry is still true, sendTiming wasn't called
if (inRetry)
@@ -258,8 +265,8 @@ Bus::findSnoopPorts(Addr addr, int id)
//Careful to not overlap ranges
//or snoop will be called more than once on the port
ports.push_back(portSnoopList[i].portId);
- DPRINTF(Bus, " found snoop addr %#llx on device%d\n", addr,
- portSnoopList[i].portId);
+// DPRINTF(Bus, " found snoop addr %#llx on device%d\n", addr,
+// portSnoopList[i].portId);
}
i++;
}