summaryrefslogtreecommitdiff
path: root/src/mem/slicc
diff options
context:
space:
mode:
authorNilay Vaish <nilay@cs.wisc.edu>2012-10-02 14:35:44 -0500
committerNilay Vaish <nilay@cs.wisc.edu>2012-10-02 14:35:44 -0500
commitb370f6a7b2fb9a4cd8e38b1db12845d401d3adf3 (patch)
treec51131cdc9e0af5544527446b602c726f2a02acb /src/mem/slicc
parentd58f84c481093aa34d08079f9f8dd6700114e767 (diff)
downloadgem5-b370f6a7b2fb9a4cd8e38b1db12845d401d3adf3.tar.xz
ruby: rename template_hack to template
I don't like using the word hack. Hence, the patch.
Diffstat (limited to 'src/mem/slicc')
-rw-r--r--src/mem/slicc/symbols/StateMachine.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mem/slicc/symbols/StateMachine.py b/src/mem/slicc/symbols/StateMachine.py
index 2b1e2a2b5..bb69b70bf 100644
--- a/src/mem/slicc/symbols/StateMachine.py
+++ b/src/mem/slicc/symbols/StateMachine.py
@@ -385,7 +385,7 @@ void unset_tbe(${{self.TBEType.c_ident}}*& m_tbe_ptr);
// Objects
''')
for var in self.objects:
- th = var.get("template_hack", "")
+ th = var.get("template", "")
code('${{var.type.c_ident}}$th* m_${{var.c_ident}}_ptr;')
if var.type.ident == "MessageBuffer":
@@ -568,7 +568,7 @@ $c_ident::init()
if "factory" in var:
code('$vid = ${{var["factory"]}};')
elif var.ident.find("mandatoryQueue") < 0:
- th = var.get("template_hack", "")
+ th = var.get("template", "")
expr = "%s = new %s%s" % (vid, vtype.c_ident, th)
args = ""