summaryrefslogtreecommitdiff
path: root/src/mem/packet.cc
diff options
context:
space:
mode:
authorAndreas Hansson <andreas.hansson@arm.com>2014-12-02 06:07:50 -0500
committerAndreas Hansson <andreas.hansson@arm.com>2014-12-02 06:07:50 -0500
commita2ee51f631199f629f36baf2f59161e25be84bdc (patch)
treeaacd7da2e8084da4990d235bfc959271511d402f /src/mem/packet.cc
parentfa60d5cf272c86cc6819e89984eb94b05dcfb605 (diff)
downloadgem5-a2ee51f631199f629f36baf2f59161e25be84bdc.tar.xz
mem: Make the requests carried by packets const
This adds a basic level of sanity checking to the packet by ensuring that a request is not modified once the packet is created. The only issue that had to be worked around is the relaying of software-prefetches in the cache. The specific situation is now solved by first copying the request, and then creating a new packet accordingly.
Diffstat (limited to 'src/mem/packet.cc')
0 files changed, 0 insertions, 0 deletions