summaryrefslogtreecommitdiff
path: root/src/mem/slicc/ast/ChipComponentAccessAST.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/mem/slicc/ast/ChipComponentAccessAST.py')
-rw-r--r--src/mem/slicc/ast/ChipComponentAccessAST.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mem/slicc/ast/ChipComponentAccessAST.py b/src/mem/slicc/ast/ChipComponentAccessAST.py
index 841220c94..bbb1b61e9 100644
--- a/src/mem/slicc/ast/ChipComponentAccessAST.py
+++ b/src/mem/slicc/ast/ChipComponentAccessAST.py
@@ -85,8 +85,8 @@ class ChipMethodAccessAST(ChipComponentAccessAST):
# Verify that this is a method of the object
if not var.type.methodExist(methodId):
- error("%s: Type '%s' does not have a method '%s'" % \
- ("Invalid method call", var.type, methodId))
+ self.error("%s: Type '%s' does not have a method '%s'" % \
+ ("Invalid method call", var.type, methodId))
expected_size = len(var.type.methodParamType(methodId))
if len(self.expr_vec) != expected_size: