From 055a6ec3da7df5fee98d8f5ba08aaf81d5e7862c Mon Sep 17 00:00:00 2001 From: Andreas Sandberg Date: Wed, 2 May 2018 14:06:35 +0100 Subject: [PATCH] python: Fix call bug in @cxxMethod when override is True Change-Id: Ifa9efbd329fd01eb13100bc6690e651df2c12294 Signed-off-by: Andreas Sandberg Reviewed-by: Javier Setoain Reviewed-by: Giacomo Travaglini Reviewed-on: https://gem5-review.googlesource.com/11514 Reviewed-by: Jason Lowe-Power Maintainer: Jason Lowe-Power --- src/python/m5/SimObject.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.30.2