cache: minor SC assertion fix
authorSteve Reinhardt <steve.reinhardt@amd.com>
Mon, 18 Oct 2010 20:05:15 +0000 (13:05 -0700)
committerSteve Reinhardt <steve.reinhardt@amd.com>
Mon, 18 Oct 2010 20:05:15 +0000 (13:05 -0700)
Thanks to Joe Gross for finding/testing this.

src/mem/cache/cache_impl.hh

index 7d19ff7a1b720d651fd8ffad5dc9beeb3320318f..c5b7ca065751e9acd20c084694ec9d7e0c656d4f 100644 (file)
@@ -906,7 +906,8 @@ Cache<TagStore>::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 {