diff options
-rw-r--r-- | src/python/m5/params.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/python/m5/params.py b/src/python/m5/params.py index e5f47e694..7a28e63c7 100644 --- a/src/python/m5/params.py +++ b/src/python/m5/params.py @@ -270,8 +270,7 @@ class SimObjectVector(VectorParamValue): v.set_parent(parent, "%s%0*d" % (name, width, i)) def has_parent(self): - elements = [e for e in self if not isNullPointer(e)] - return reduce(lambda x,y: x and y, [v.has_parent() for v in elements]) + return any([e.has_parent() for e in self if not isNullPointer(e)]) # return 'cpu0 cpu1' etc. for print_ini() def get_name(self): |