ruby: slicc: replace max_in_port_rank with number of inports
authorNilay Vaish <nilay@cs.wisc.edu>
Sat, 21 Dec 2013 02:34:04 +0000 (20:34 -0600)
committerNilay Vaish <nilay@cs.wisc.edu>
Sat, 21 Dec 2013 02:34:04 +0000 (20:34 -0600)
commitfc53f9ffcc880a5429fb41a881bc095bf200e4a4
tree398d012bd772b37673e3046aad5ca3d48e872ec4
parent30b259a31eb8e2b4dc5aaef2705ee3896a457062
ruby: slicc: replace max_in_port_rank with number of inports

This patch replaces max_in_port_rank with the number of inports.  The use of
max_in_port_rank was causing spurious re-builds and incorrect initialization
of variables in ruby related regression tests.  This was due to the variable
value being used across threads while compiling when it was not meant to be.

Since the number of inports is state machine specific value, this problem
should get solved.
src/mem/ruby/slicc_interface/AbstractController.cc
src/mem/ruby/slicc_interface/AbstractController.hh
src/mem/slicc/ast/InPortDeclAST.py
src/mem/slicc/symbols/StateMachine.py