diff options
author | Nilay Vaish <nilay@cs.wisc.edu> | 2014-02-20 17:27:45 -0600 |
---|---|---|
committer | Nilay Vaish <nilay@cs.wisc.edu> | 2014-02-20 17:27:45 -0600 |
commit | 896654746adeebc264150692a9dda4e3fa48a6a3 (patch) | |
tree | ea24710d84c4d3e9610dea2e37c15aea9001f951 /src/mem/slicc | |
parent | 0ce8c2591941fa7899ad7fff445391ec089e974c (diff) | |
download | gem5-896654746adeebc264150692a9dda4e3fa48a6a3.tar.xz |
ruby: controller: slight code refactoring
Diffstat (limited to 'src/mem/slicc')
-rw-r--r-- | src/mem/slicc/symbols/StateMachine.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/mem/slicc/symbols/StateMachine.py b/src/mem/slicc/symbols/StateMachine.py index 679d15f97..b2f225af8 100644 --- a/src/mem/slicc/symbols/StateMachine.py +++ b/src/mem/slicc/symbols/StateMachine.py @@ -458,7 +458,8 @@ stringstream ${ident}_transitionComment; $c_ident::$c_ident(const Params *p) : AbstractController(p) { - m_name = "${ident}"; + m_machineID.type = MachineType_${ident}; + m_machineID.num = m_version; ''') num_in_ports = len(self.in_ports) code(' m_in_ports = $num_in_ports;') @@ -545,9 +546,6 @@ $c_ident::init() MachineType machine_type = string_to_MachineType("${{var.machine.ident}}"); int base M5_VAR_USED = MachineType_base_number(machine_type); - m_machineID.type = MachineType_${ident}; - m_machineID.num = m_version; - // initialize objects ''') |