summaryrefslogtreecommitdiff
path: root/src/python/m5/SimObject.py
diff options
context:
space:
mode:
authorAndreas Sandberg <andreas.sandberg@arm.com>2019-01-26 10:52:26 +0000
committerAndreas Sandberg <andreas.sandberg@arm.com>2019-02-20 18:27:10 +0000
commit33ba44709b74add1a1aff16c09c707b57c97acb3 (patch)
tree9df5feac3e0a7e0ff442e02f3eb5b37593717270 /src/python/m5/SimObject.py
parent4fa56fe2f8618f5fbc47ec21ac033d5e7ac2790d (diff)
downloadgem5-33ba44709b74add1a1aff16c09c707b57c97acb3.tar.xz
python: Use __name__ instead of func_name for Py3 compat
Change-Id: I62a9685b4bce7e9012bc65309fcafe26135fde6d Signed-off-by: Andreas Sandberg <andreas.sandberg@arm.com> Reviewed-on: https://gem5-review.googlesource.com/c/15997 Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Diffstat (limited to 'src/python/m5/SimObject.py')
-rw-r--r--src/python/m5/SimObject.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/python/m5/SimObject.py b/src/python/m5/SimObject.py
index 20bb5faec..990480720 100644
--- a/src/python/m5/SimObject.py
+++ b/src/python/m5/SimObject.py
@@ -875,7 +875,7 @@ def cxxMethod(*args, **kwargs):
"""Decorator to export C++ functions to Python"""
def decorate(func):
- name = func.func_name
+ name = func.__name__
override = kwargs.get("override", False)
cxx_name = kwargs.get("cxx_name", name)