summaryrefslogtreecommitdiff
path: root/src/cpu/testers/traffic_gen/traffic_gen.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/cpu/testers/traffic_gen/traffic_gen.cc')
-rw-r--r--src/cpu/testers/traffic_gen/traffic_gen.cc9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/cpu/testers/traffic_gen/traffic_gen.cc b/src/cpu/testers/traffic_gen/traffic_gen.cc
index f8eb38d31..a405351ed 100644
--- a/src/cpu/testers/traffic_gen/traffic_gen.cc
+++ b/src/cpu/testers/traffic_gen/traffic_gen.cc
@@ -63,7 +63,8 @@ TrafficGen::TrafficGen(const TrafficGenParams* p)
port(name() + ".port", *this),
retryPkt(NULL),
retryPktTick(0),
- updateEvent(this)
+ updateEvent(this),
+ numSuppressed(0)
{
}
@@ -198,6 +199,12 @@ TrafficGen::update()
} else {
DPRINTF(TrafficGen, "Suppressed packet %s 0x%x\n",
pkt->cmdString(), pkt->getAddr());
+
+ ++numSuppressed;
+ if (numSuppressed % 10000)
+ warn("%s suppressed %d packets with non-memory addresses\n",
+ name(), numSuppressed);
+
delete pkt->req;
delete pkt;
pkt = nullptr;