changeset 2831ae658bfc in /z/repo/m5
details: http://repo.m5sim.org/m5?cmd=changeset;node=2831ae658bfc
description:
Config: Cause a fatal() when a parameter without a default value isn't
set(FS #315).
diffstat:
3 files changed, 4 insertions(+), 2 deletions(-)
src/cpu/BaseCPU.py | 2 +-
src/dev/DiskImage.py | 1 +
src/python/m5/SimObject.py | 3 ++-
diffs (33 lines):
diff -r dad5aad2dc2d -r 2831ae658bfc src/cpu/BaseCPU.py
--- a/src/cpu/BaseCPU.py Thu Jan 29 22:27:11 2009 -0800
+++ b/src/cpu/BaseCPU.py Fri Jan 30 19:08:13 2009 -0500
@@ -69,7 +69,7 @@
function_trace = Param.Bool(False, "Enable function trace")
function_trace_start = Param.Tick(0, "Cycle to start function trace")
- checker = Param.BaseCPU("checker CPU")
+ checker = Param.BaseCPU(NULL, "checker CPU")
do_checkpoint_insts = Param.Bool(True,
"enable checkpoint pseudo instructions")
diff -r dad5aad2dc2d -r 2831ae658bfc src/dev/DiskImage.py
--- a/src/dev/DiskImage.py Thu Jan 29 22:27:11 2009 -0800
+++ b/src/dev/DiskImage.py Fri Jan 30 19:08:13 2009 -0500
@@ -42,3 +42,4 @@
child = Param.DiskImage(RawDiskImage(read_only=True),
"child image")
table_size = Param.Int(65536, "initial table size")
+ image_file = ""
diff -r dad5aad2dc2d -r 2831ae658bfc src/python/m5/SimObject.py
--- a/src/python/m5/SimObject.py Thu Jan 29 22:27:11 2009 -0800
+++ b/src/python/m5/SimObject.py Fri Jan 30 19:08:13 2009 -0500
@@ -748,7 +748,8 @@
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):
_______________________________________________
m5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/m5-dev