mem: Make the requests carried by packets const
authorAndreas Hansson <andreas.hansson@arm.com>
Tue, 2 Dec 2014 11:07:50 +0000 (06:07 -0500)
committerAndreas Hansson <andreas.hansson@arm.com>
Tue, 2 Dec 2014 11:07:50 +0000 (06:07 -0500)
commita2ee51f631199f629f36baf2f59161e25be84bdc
treeaacd7da2e8084da4990d235bfc959271511d402f
parentfa60d5cf272c86cc6819e89984eb94b05dcfb605
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.
src/mem/cache/cache_impl.hh
src/mem/packet.hh