mshr.cc (12727:56c23b54bcb1) mshr.cc (12749:223c83ed9979)
1/*
2 * Copyright (c) 2012-2013, 2015-2018 ARM Limited
3 * All rights reserved.
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

--- 410 unchanged lines hidden (view full) ---

419 // the original packet data storage may have been deleted by
420 // the time we get to process this packet. In the cases where
421 // we are not responding after handling the snoop we also need
422 // to create a copy of the request to be on the safe side. In
423 // the latter case the cache is responsible for deleting both
424 // the packet and the request as part of handling the deferred
425 // snoop.
426 PacketPtr cp_pkt = will_respond ? new Packet(pkt, true, true) :
1/*
2 * Copyright (c) 2012-2013, 2015-2018 ARM Limited
3 * All rights reserved.
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

--- 410 unchanged lines hidden (view full) ---

419 // the original packet data storage may have been deleted by
420 // the time we get to process this packet. In the cases where
421 // we are not responding after handling the snoop we also need
422 // to create a copy of the request to be on the safe side. In
423 // the latter case the cache is responsible for deleting both
424 // the packet and the request as part of handling the deferred
425 // snoop.
426 PacketPtr cp_pkt = will_respond ? new Packet(pkt, true, true) :
427 new Packet(new Request(*pkt->req), pkt->cmd, blkSize, pkt->id);
427 new Packet(std::make_shared<Request>(*pkt->req), pkt->cmd,
428 blkSize, pkt->id);
428
429 if (will_respond) {
430 // we are the ordering point, and will consequently
431 // respond, and depending on whether the packet
432 // needsWritable or not we either pass a Shared line or a
433 // Modified line
434 pkt->setCacheResponding();
435

--- 187 unchanged lines hidden ---
429
430 if (will_respond) {
431 // we are the ordering point, and will consequently
432 // respond, and depending on whether the packet
433 // needsWritable or not we either pass a Shared line or a
434 // Modified line
435 pkt->setCacheResponding();
436

--- 187 unchanged lines hidden ---