Mem: fix master id assertion in cache_impl.hh

The assertion was applied to the wrong packet.
This patch fixes the issue rerported by Xiang Jiang on the gem5-dev mailing list.
This commit is contained in:
Dam Sunwoo
2012-06-29 11:19:07 -04:00
parent 234fd1c4d8
commit 7cbe0cf564

View File

@@ -903,7 +903,7 @@ Cache<TagStore>::handleResponse(PacketPtr pkt)
assert(!target->pkt->req->isUncacheable());
assert(pkt->req->masterId() < system->maxMasters());
assert(target->pkt->req->masterId() < system->maxMasters());
missLatency[target->pkt->cmdToIndex()][target->pkt->req->masterId()] +=
completion_time - target->recvTime;
} else if (pkt->cmd == MemCmd::UpgradeFailResp) {