diff options
Diffstat (limited to 'src/python')
-rw-r--r-- | src/python/m5/SimObject.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/python/m5/SimObject.py b/src/python/m5/SimObject.py index 47e647467..0a5436f5b 100644 --- a/src/python/m5/SimObject.py +++ b/src/python/m5/SimObject.py @@ -898,7 +898,7 @@ def cxxMethod(*args, **kwargs): @wraps(func) def py_call(self, *args, **kwargs): - return self.func(*args, **kwargs) + return func(self, *args, **kwargs) f = py_call if override else cxx_call f.__pybind = PyBindMethod(name, cxx_name=cxx_name, args=args) |