summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNilay Vaish <nilay@cs.wisc.edu>2015-07-04 10:43:46 -0500
committerNilay Vaish <nilay@cs.wisc.edu>2015-07-04 10:43:46 -0500
commitd29d7c41f1e5db1460cebce7d29d5cc7b9902ce4 (patch)
tree3fa9394e866534cb599e0b1c1e4077f63c9d7760 /src
parent16ac48e6a419b75e6a9e86fab9cd2fd62ef9a574 (diff)
downloadgem5-d29d7c41f1e5db1460cebce7d29d5cc7b9902ce4.tar.xz
mem: packet: Add const to constructor argument
Diffstat (limited to 'src')
-rw-r--r--src/mem/packet.hh2
1 files changed, 1 insertions, 1 deletions
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),