From 7cbe0cf5646120f8e4bca388d6eb487dff2632c9 Mon Sep 17 00:00:00 2001 From: Dam Sunwoo Date: Fri, 29 Jun 2012 11:19:07 -0400 Subject: [PATCH] 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. --- src/mem/cache/cache_impl.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.30.2