diff options
author | Nilay Vaish <nilay@cs.wisc.edu> | 2011-07-27 20:20:53 -0500 |
---|---|---|
committer | Nilay Vaish <nilay@cs.wisc.edu> | 2011-07-27 20:20:53 -0500 |
commit | b4152e250da1999d7e495d5501f029f5370e01ed (patch) | |
tree | 8bf2afa6f6ecdf8a266f4000c4fd6f217ed4a4cf /src/mem/slicc/symbols/StateMachine.py | |
parent | 00ad4eb8ce997466e1d537b0f0a3911de7842b4c (diff) | |
download | gem5-b4152e250da1999d7e495d5501f029f5370e01ed.tar.xz |
SLICC: Put functions of a controller in its .cc file
Currently, functions associated with a controller go into separate files.
This patch puts all the functions in the controller's .cc file. This should
hopefully take away some time from compilation.
Diffstat (limited to 'src/mem/slicc/symbols/StateMachine.py')
-rw-r--r-- | src/mem/slicc/symbols/StateMachine.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mem/slicc/symbols/StateMachine.py b/src/mem/slicc/symbols/StateMachine.py index a3a95002d..42249ab7a 100644 --- a/src/mem/slicc/symbols/StateMachine.py +++ b/src/mem/slicc/symbols/StateMachine.py @@ -168,9 +168,6 @@ class StateMachine(Symbol): self.printProfileDumperCC(path) self.printProfileDumperHH(path) - for func in self.functions: - func.writeCodeFiles(path) - def printControllerPython(self, path): code = self.symtab.codeFormatter() ident = self.ident @@ -945,6 +942,9 @@ $c_ident::${{action.ident}}(const Address& addr) } ''') + for func in self.functions: + code(func.generateCode()) + code.write(path, "%s.cc" % c_ident) def printCWakeup(self, path): |