mem: Add const getters for write packet data
authorAndreas Hansson <andreas.hansson@arm.com>
Tue, 2 Dec 2014 11:07:36 +0000 (06:07 -0500)
committerAndreas Hansson <andreas.hansson@arm.com>
Tue, 2 Dec 2014 11:07:36 +0000 (06:07 -0500)
commit9779ba2e37a753df407b976fc4b299d936ea62b8
treee25e0cf44834427975767e88bf3dcfc6359ed4a8
parent25bfc249998b26403d50587eb66e6ee5e6de5b58
mem: Add const getters for write packet data

This patch takes a first step in tightening up how we use the data
pointer in write packets. A const getter is added for the pointer
itself (getConstPtr), and a number of member functions are also made
const accordingly. In a range of places throughout the memory system
the new member is used.

The patch also removes the unused isReadWrite function.
20 files changed:
src/cpu/inorder/resources/cache_unit.cc
src/cpu/inorder/resources/fetch_unit.cc
src/cpu/minor/execute.cc
src/cpu/minor/lsq.cc
src/cpu/o3/fetch_impl.hh
src/cpu/simple/atomic.cc
src/cpu/testers/memtest/memtest.cc
src/cpu/testers/rubytest/Check.cc
src/mem/abstract_mem.cc
src/mem/cache/cache.hh
src/mem/cache/cache_impl.hh
src/mem/external_slave.cc
src/mem/packet.cc
src/mem/packet.hh
src/mem/packet_access.hh
src/mem/ruby/common/DataBlock.cc
src/mem/ruby/common/DataBlock.hh
src/mem/ruby/slicc_interface/RubyRequest.cc
src/mem/ruby/slicc_interface/RubySlicc_Util.hh
src/mem/ruby/system/Sequencer.cc