summaryrefslogtreecommitdiff
path: root/src/mem/slicc/ast
diff options
context:
space:
mode:
Diffstat (limited to 'src/mem/slicc/ast')
-rw-r--r--src/mem/slicc/ast/FormalParamAST.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mem/slicc/ast/FormalParamAST.py b/src/mem/slicc/ast/FormalParamAST.py
index 783607f43..e94f24ccb 100644
--- a/src/mem/slicc/ast/FormalParamAST.py
+++ b/src/mem/slicc/ast/FormalParamAST.py
@@ -56,4 +56,4 @@ class FormalParamAST(AST):
return type, "%s* %s" % (type.c_ident, param)
else:
- return type, "%s %s" % (type.c_ident, param)
+ return type, "const %s& %s" % (type.c_ident, param)