From d29d7c41f1e5db1460cebce7d29d5cc7b9902ce4 Mon Sep 17 00:00:00 2001 From: Nilay Vaish Date: Sat, 4 Jul 2015 10:43:46 -0500 Subject: mem: packet: Add const to constructor argument --- src/mem/packet.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mem/packet.hh') 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), -- cgit v1.2.3