summaryrefslogtreecommitdiff
path: root/src/mem
diff options
context:
space:
mode:
authorSteve Reinhardt <stever@eecs.umich.edu>2007-02-06 21:53:05 -0800
committerSteve Reinhardt <stever@eecs.umich.edu>2007-02-06 21:53:05 -0800
commit51e54f519dddf902ffdfc90115e98a440c343c02 (patch)
tree91cd27fc8fc4ac1c77efdf23d3239a84c32c35fa /src/mem
parentd4867001490911bf853130ec0eeb1731ba71da37 (diff)
downloadgem5-51e54f519dddf902ffdfc90115e98a440c343c02.tar.xz
Minor DPRINTF fixes.
--HG-- extra : convert_revision : 41956c9a480163ecac7807982215027e8ff1a4a9
Diffstat (limited to 'src/mem')
-rw-r--r--src/mem/bus.cc3
-rw-r--r--src/mem/bus.hh2
-rw-r--r--src/mem/cache/base_cache.cc2
3 files changed, 5 insertions, 2 deletions
diff --git a/src/mem/bus.cc b/src/mem/bus.cc
index bd721dd68..2d7f20ae6 100644
--- a/src/mem/bus.cc
+++ b/src/mem/bus.cc
@@ -197,7 +197,8 @@ Bus::recvTiming(PacketPtr pkt)
// Packet was successfully sent. Return true.
// Also take care of retries
if (inRetry) {
- DPRINTF(Bus, "Remove retry from list %i\n", retryList.front());
+ DPRINTF(Bus, "Remove retry from list %d\n",
+ retryList.front()->getId());
retryList.front()->onRetryList(false);
retryList.pop_front();
inRetry = false;
diff --git a/src/mem/bus.hh b/src/mem/bus.hh
index 0ad4aad60..350a67b43 100644
--- a/src/mem/bus.hh
+++ b/src/mem/bus.hh
@@ -156,6 +156,8 @@ class Bus : public MemObject
void onRetryList(bool newVal)
{ _onRetryList = newVal; }
+ int getId() { return id; }
+
protected:
/** When reciving a timing request from the peer port (at id),
diff --git a/src/mem/cache/base_cache.cc b/src/mem/cache/base_cache.cc
index d9e6c5e1f..ace46d752 100644
--- a/src/mem/cache/base_cache.cc
+++ b/src/mem/cache/base_cache.cc
@@ -356,7 +356,7 @@ BaseCache::CacheEvent::process()
const char *
BaseCache::CacheEvent::description()
{
- return "timing event\n";
+ return "BaseCache timing event";
}
void