summaryrefslogtreecommitdiff
path: root/src/python
diff options
context:
space:
mode:
authorAli Saidi <saidi@eecs.umich.edu>2009-01-30 19:08:13 -0500
committerAli Saidi <saidi@eecs.umich.edu>2009-01-30 19:08:13 -0500
commit35a85a4e86143c5bf23d5b74c14856792a0a624c (patch)
treec30a7e89241b374fd98ef49ce71828a1c225989a /src/python
parent0b228fc1ab7dbcf212a6d08aef8c7b7ff555a592 (diff)
downloadgem5-35a85a4e86143c5bf23d5b74c14856792a0a624c.tar.xz
Config: Cause a fatal() when a parameter without a default value isn't set(FS #315).
Diffstat (limited to 'src/python')
-rw-r--r--src/python/m5/SimObject.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/python/m5/SimObject.py b/src/python/m5/SimObject.py
index 868f969a6..2b5dd1bc2 100644
--- a/src/python/m5/SimObject.py
+++ b/src/python/m5/SimObject.py
@@ -748,7 +748,8 @@ class SimObject(object):
for param in param_names:
value = self._values.get(param)
if value is None:
- continue
+ m5.fatal("%s.%s without default or user set value" \
+ % (self.path(), param))
value = value.getValue()
if isinstance(self._params[param], VectorParamDesc):