packet.hh (10886:fdd4a895f325) | packet.hh (10896:66e131813346) |
---|---|
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 --- 599 unchanged lines hidden (view full) --- 608 609 /** 610 * Alternate constructor for copying a packet. Copy all fields 611 * *except* if the original packet's data was dynamic, don't copy 612 * that, as we can't guarantee that the new packet's lifetime is 613 * less than that of the original packet. In this case the new 614 * packet should allocate its own data. 615 */ | 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 --- 599 unchanged lines hidden (view full) --- 608 609 /** 610 * Alternate constructor for copying a packet. Copy all fields 611 * *except* if the original packet's data was dynamic, don't copy 612 * that, as we can't guarantee that the new packet's lifetime is 613 * less than that of the original packet. In this case the new 614 * packet should allocate its own data. 615 */ |
616 Packet(PacketPtr pkt, bool clear_flags, bool alloc_data) | 616 Packet(const PacketPtr pkt, bool clear_flags, bool alloc_data) |
617 : cmd(pkt->cmd), req(pkt->req), 618 data(nullptr), 619 addr(pkt->addr), _isSecure(pkt->_isSecure), size(pkt->size), 620 bytesValid(pkt->bytesValid), 621 headerDelay(pkt->headerDelay), 622 payloadDelay(pkt->payloadDelay), 623 senderState(pkt->senderState) 624 { --- 380 unchanged lines hidden --- | 617 : cmd(pkt->cmd), req(pkt->req), 618 data(nullptr), 619 addr(pkt->addr), _isSecure(pkt->_isSecure), size(pkt->size), 620 bytesValid(pkt->bytesValid), 621 headerDelay(pkt->headerDelay), 622 payloadDelay(pkt->payloadDelay), 623 senderState(pkt->senderState) 624 { --- 380 unchanged lines hidden --- |