packet.hh (10763:d524dc4f16ae) packet.hh (10872:ebb3d0737aa7)
1/*
2 * Copyright (c) 2012-2015 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

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

687 return new Packet(req, makeWriteCmd(req));
688 }
689
690 /**
691 * clean up packet variables
692 */
693 ~Packet()
694 {
1/*
2 * Copyright (c) 2012-2015 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

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

687 return new Packet(req, makeWriteCmd(req));
688 }
689
690 /**
691 * clean up packet variables
692 */
693 ~Packet()
694 {
695 // If this is a request packet for which there's no response,
696 // delete the request object here, since the requester will
697 // never get the chance.
698 if (req && isRequest() && !needsResponse())
695 // Delete the request object if this is a request packet which
696 // does not need a response, because the requester will not get
697 // a chance. If the request packet needs a response then the
698 // request will be deleted on receipt of the response
699 // packet. We also make sure to never delete the request for
700 // express snoops, even for cases when responses are not
701 // needed (CleanEvict and Writeback), since the snoop packet
702 // re-uses the same request.
703 if (req && isRequest() && !needsResponse() &&
704 !isExpressSnoop()) {
699 delete req;
705 delete req;
706 }
700 deleteData();
701 }
702
703 /**
704 * Take a request packet and modify it in place to be suitable for
705 * returning as a response to that request.
706 */
707 void

--- 268 unchanged lines hidden ---
707 deleteData();
708 }
709
710 /**
711 * Take a request packet and modify it in place to be suitable for
712 * returning as a response to that request.
713 */
714 void

--- 268 unchanged lines hidden ---