summaryrefslogtreecommitdiff
path: root/src/mem/slicc/ast/FuncCallExprAST.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/mem/slicc/ast/FuncCallExprAST.py')
-rw-r--r--src/mem/slicc/ast/FuncCallExprAST.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/mem/slicc/ast/FuncCallExprAST.py b/src/mem/slicc/ast/FuncCallExprAST.py
index 1438934e6..b0ab931de 100644
--- a/src/mem/slicc/ast/FuncCallExprAST.py
+++ b/src/mem/slicc/ast/FuncCallExprAST.py
@@ -206,12 +206,8 @@ if (!(${{cvec[0]}})) {
else:
# Normal function
-
- # if the func is internal to the chip but not the machine
- # then it can only be accessed through the chip pointer
- internal = ""
if "external" not in func and not func.isInternalMachineFunc:
- internal = "m_chip_ptr->"
+ self.error("Invalid function")
params = ""
first_param = True
@@ -225,7 +221,7 @@ if (!(${{cvec[0]}})) {
params += str(param_code);
fix = code.nofix()
- code('(${internal}${{func.c_ident}}($params))')
+ code('(${{func.c_ident}}($params))')
code.fix(fix)
return func.return_type