From: Steve Reinhardt Date: Mon, 18 Oct 2010 20:05:15 +0000 (-0700) Subject: cache: minor SC assertion fix X-Git-Tag: stable_2012_02_02~785 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=45aebaccde9af3ef50f8ee168606a370952a99ab;p=gem5.git cache: minor SC assertion fix Thanks to Joe Gross for finding/testing this. --- diff --git a/src/mem/cache/cache_impl.hh b/src/mem/cache/cache_impl.hh index 7d19ff7a1..c5b7ca065 100644 --- a/src/mem/cache/cache_impl.hh +++ b/src/mem/cache/cache_impl.hh @@ -906,7 +906,8 @@ Cache::handleResponse(PacketPtr pkt) } else if (pkt->cmd == MemCmd::UpgradeFailResp) { // failed StoreCond upgrade 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; target->pkt->req->setExtraData(0); } else {