mem: Add missing stats update for uncacheable MSHRs

This patch adds a missing counter update for the uncacheable
accesses. By updating this counter we also get a meaningful average
latency for uncacheable accesses (previously inf).
This commit is contained in:
Andreas Hansson
2015-05-05 03:22:24 -04:00
parent 33e3e370f2
commit 0ebbf3f951

View File

@@ -701,8 +701,10 @@ Cache::recvTimingReq(PacketPtr pkt)
}
} else {
// no MSHR
if (!pkt->req->isUncacheable()) {
assert(pkt->req->masterId() < system->maxMasters());
assert(pkt->req->masterId() < system->maxMasters());
if (pkt->req->isUncacheable()) {
mshr_uncacheable[pkt->cmdToIndex()][pkt->req->masterId()]++;
} else {
mshr_misses[pkt->cmdToIndex()][pkt->req->masterId()]++;
}