summaryrefslogtreecommitdiff
path: root/src/python
diff options
context:
space:
mode:
Diffstat (limited to 'src/python')
-rw-r--r--src/python/m5/params.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/python/m5/params.py b/src/python/m5/params.py
index b49f811d1..e5f47e694 100644
--- a/src/python/m5/params.py
+++ b/src/python/m5/params.py
@@ -270,7 +270,8 @@ class SimObjectVector(VectorParamValue):
v.set_parent(parent, "%s%0*d" % (name, width, i))
def has_parent(self):
- return reduce(lambda x,y: x and y, [v.has_parent() for v in 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 'cpu0 cpu1' etc. for print_ini()
def get_name(self):