cache: minor SC assertion fix

Thanks to Joe Gross for finding/testing this.
This commit is contained in:
Steve Reinhardt 2010-10-18 13:05:15 -07:00
parent 968447db66
commit 45aebaccde

View file

@ -906,7 +906,8 @@ Cache<TagStore>::handleResponse(PacketPtr pkt)
} else if (pkt->cmd == MemCmd::UpgradeFailResp) { } else if (pkt->cmd == MemCmd::UpgradeFailResp) {
// failed StoreCond upgrade // failed StoreCond upgrade
assert(target->pkt->cmd == MemCmd::StoreCondReq || assert(target->pkt->cmd == MemCmd::StoreCondReq ||
target->pkt->cmd == MemCmd::StoreCondFailReq); target->pkt->cmd == MemCmd::StoreCondFailReq ||
target->pkt->cmd == MemCmd::SCUpgradeFailReq);
completion_time = tags->getHitLatency() + pkt->finishTime; completion_time = tags->getHitLatency() + pkt->finishTime;
target->pkt->req->setExtraData(0); target->pkt->req->setExtraData(0);
} else { } else {