380,383c380,383
< RequestPtr req = new Request(pkt->req->getPaddr(),
< pkt->req->getSize(),
< pkt->req->getFlags(),
< pkt->req->masterId());
---
> RequestPtr req = std::make_shared<Request>(pkt->req->getPaddr(),
> pkt->req->getSize(),
> pkt->req->getFlags(),
> pkt->req->masterId());
699d698
< delete tgt_pkt->req;
806d804
< delete tgt_pkt->req;
873a872
>
874a874,875
> RequestPtr req = std::make_shared<Request>(
> regenerateBlkAddr(blk), blkSize, 0, Request::wbMasterId);
876,878d876
< RequestPtr req =
< new Request(regenerateBlkAddr(blk), blkSize, 0,
< Request::wbMasterId);
1141,1149d1138
<
< // if we copied the deferred packet with the intention to
< // respond, but are not responding, then a cache above us must
< // be, and we can use this as the indication of whether this
< // is a packet where we created a copy of the request or not
< if (!pkt->cacheResponding()) {
< delete pkt->req;
< }
<
1399d1387
< delete tgt_pkt->req;