mem: Use shared_ptr for Ruby Message classes
authorAndreas Hansson <andreas.hansson@arm.com>
Thu, 16 Oct 2014 09:49:49 +0000 (05:49 -0400)
committerAndreas Hansson <andreas.hansson@arm.com>
Thu, 16 Oct 2014 09:49:49 +0000 (05:49 -0400)
commitdb3739682d7c54839b627ff8f7a4448a9dc99987
treeef5e44342d585e102e2dd4b5503b0111bb8ce35f
parentacdfcad30de8dcf59515b688a1310ba2c1ca6947
mem: Use shared_ptr for Ruby Message classes

This patch transitions the Ruby Message and its derived classes from
the ad-hoc RefCountingPtr to the c++11 shared_ptr. There are no
changes in behaviour, and the code modifications are mainly replacing
"new" with "make_shared".

The cloning of derived messages is slightly changed as they previously
relied on overriding the base-class through covariant return types.
src/mem/ruby/slicc_interface/Message.hh
src/mem/ruby/slicc_interface/NetworkMessage.hh
src/mem/ruby/slicc_interface/RubyRequest.hh
src/mem/ruby/system/DMASequencer.cc
src/mem/ruby/system/DMASequencer.hh
src/mem/ruby/system/Sequencer.cc
src/mem/slicc/ast/EnqueueStatementAST.py
src/mem/slicc/symbols/Type.py