ruby: change slicc to allow for constructor args
authorNilay Vaish <nilay@cs.wisc.edu>
Tue, 11 Dec 2012 16:05:55 +0000 (10:05 -0600)
committerNilay Vaish <nilay@cs.wisc.edu>
Tue, 11 Dec 2012 16:05:55 +0000 (10:05 -0600)
commit9b72a0f627bb9d9f3028e1ad7bf65976863db099
treebf5532471cff6bba7f790461e148da7904425a78
parent93e283abb348b81d086225f7861d94901c9b0888
ruby: change slicc to allow for constructor args
The patch adds support to slicc for recognizing arguments that should be
passed to the constructor of a class. I did not like the fact that an explicit
check was being carried on the type 'TBETable' to figure out the arguments to
be passed to the constructor.
The patch also moves some of the member variables that are declared for all
the controllers to the base class AbstractController.
18 files changed:
src/mem/protocol/MESI_CMP_directory-L1cache.sm
src/mem/protocol/MESI_CMP_directory-L2cache.sm
src/mem/protocol/MESI_CMP_directory-dir.sm
src/mem/protocol/MI_example-cache.sm
src/mem/protocol/MI_example-dir.sm
src/mem/protocol/MOESI_CMP_directory-L1cache.sm
src/mem/protocol/MOESI_CMP_directory-L2cache.sm
src/mem/protocol/MOESI_CMP_directory-dir.sm
src/mem/protocol/MOESI_CMP_directory-dma.sm
src/mem/protocol/MOESI_CMP_token-L1cache.sm
src/mem/protocol/MOESI_CMP_token-dir.sm
src/mem/protocol/MOESI_hammer-cache.sm
src/mem/protocol/MOESI_hammer-dir.sm
src/mem/protocol/Network_test-cache.sm
src/mem/protocol/RubySlicc_Exports.sm
src/mem/ruby/slicc_interface/AbstractController.cc
src/mem/ruby/slicc_interface/AbstractController.hh
src/mem/slicc/symbols/StateMachine.py