summaryrefslogtreecommitdiff
path: root/src/python/m5/SimObject.py
diff options
context:
space:
mode:
authorMiles Kaufmann <milesck@eecs.umich.edu>2007-08-30 15:16:58 -0400
committerMiles Kaufmann <milesck@eecs.umich.edu>2007-08-30 15:16:58 -0400
commit9cb49ab9e0ff8917d20fd7dc81be3ce5ecc81bd8 (patch)
tree110c04e9c6002f4be98a36a77ff85f7dcc29a9f2 /src/python/m5/SimObject.py
parentf67cd046731f07cc76ec63d0614be81d2e212ac4 (diff)
downloadgem5-9cb49ab9e0ff8917d20fd7dc81be3ce5ecc81bd8.tar.xz
python: Eliminate the Python use of eval() and frame manipulation
--HG-- extra : convert_revision : 04520bcfab510580a1c7fb341afbd2487287d1ab
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 22c488f5d..14978dd75 100644
--- a/src/python/m5/SimObject.py
+++ b/src/python/m5/SimObject.py
@@ -757,7 +757,7 @@ class SimObject(object):
if self._ccParams:
return self._ccParams
- cc_params_struct = eval('m5.objects.params.%sParams' % self.type)
+ cc_params_struct = getattr(m5.objects.params, '%sParams' % self.type)
cc_params = cc_params_struct()
cc_params.object = self
cc_params.name = str(self)