summaryrefslogtreecommitdiff
path: root/src/mem/slicc/ast
diff options
context:
space:
mode:
authorNilay Vaish <nilay@cs.wisc.edu>2014-09-01 16:55:43 -0500
committerNilay Vaish <nilay@cs.wisc.edu>2014-09-01 16:55:43 -0500
commit557200725ccf98b50d9fd288e1eb0c5ffc7875ea (patch)
treee9b4a7de833120e79b1b149707a0647eb9641a85 /src/mem/slicc/ast
parent6ceb1aadc2d64576c4506657da6b3ba1b7a2d4ea (diff)
downloadgem5-557200725ccf98b50d9fd288e1eb0c5ffc7875ea.tar.xz
ruby: slicc: donot prefix machine name to variables
This changeset does away with prefixing of member variables of state machines with the identity of the machine itself.
Diffstat (limited to 'src/mem/slicc/ast')
-rw-r--r--src/mem/slicc/ast/ObjDeclAST.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/mem/slicc/ast/ObjDeclAST.py b/src/mem/slicc/ast/ObjDeclAST.py
index 4fd85d143..5cb662fc0 100644
--- a/src/mem/slicc/ast/ObjDeclAST.py
+++ b/src/mem/slicc/ast/ObjDeclAST.py
@@ -70,8 +70,6 @@ class ObjDeclAST(DeclAST):
c_code = "m_machineID"
elif self.ident == "clusterID":
c_code = "m_clusterID"
- elif machine:
- c_code = "(*m_%s_%s_ptr)" % (machine.ident, self.ident)
else:
c_code = "(*m_%s_ptr)" % (self.ident)