From: Dam Sunwoo Date: Fri, 29 Jun 2012 15:19:07 +0000 (-0400) Subject: Mem: fix master id assertion in cache_impl.hh X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7cbe0cf5646120f8e4bca388d6eb487dff2632c9;p=gem5.git 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. --- diff --git a/src/mem/cache/cache_impl.hh b/src/mem/cache/cache_impl.hh index 2329b2ea6..af32346bb 100644 --- a/src/mem/cache/cache_impl.hh +++ b/src/mem/cache/cache_impl.hh @@ -903,7 +903,7 @@ Cache::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) {