From: Nilay Vaish Date: Sat, 4 Jul 2015 15:43:46 +0000 (-0500) Subject: mem: packet: Add const to constructor argument X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d29d7c41f1e5db1460cebce7d29d5cc7b9902ce4;p=gem5.git mem: packet: Add const to constructor argument --- diff --git a/src/mem/packet.hh b/src/mem/packet.hh index 54f2176c6..f294cdf29 100644 --- a/src/mem/packet.hh +++ b/src/mem/packet.hh @@ -613,7 +613,7 @@ class Packet : public Printable * less than that of the original packet. In this case the new * packet should allocate its own data. */ - Packet(PacketPtr pkt, bool clear_flags, bool alloc_data) + Packet(const PacketPtr pkt, bool clear_flags, bool alloc_data) : cmd(pkt->cmd), req(pkt->req), data(nullptr), addr(pkt->addr), _isSecure(pkt->_isSecure), size(pkt->size),