Config: Cause a fatal() when a parameter without a default value isn't set(FS #315).
authorAli Saidi <saidi@eecs.umich.edu>
Sat, 31 Jan 2009 00:08:13 +0000 (19:08 -0500)
committerAli Saidi <saidi@eecs.umich.edu>
Sat, 31 Jan 2009 00:08:13 +0000 (19:08 -0500)
src/cpu/BaseCPU.py
src/dev/DiskImage.py
src/python/m5/SimObject.py

index 985c415a0d84d1008bb35c02b05948a0dc1babc8..f3688e991d7b6ed247d7b7ca7029fa64a3418953 100644 (file)
@@ -69,7 +69,7 @@ class BaseCPU(MemObject):
     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")
index af2407458bff61cf12327ef87493f8e7fe81a956..92eb0553c6d8b7825a33768616e725d7509a0a37 100644 (file)
@@ -42,3 +42,4 @@ class CowDiskImage(DiskImage):
     child = Param.DiskImage(RawDiskImage(read_only=True),
                             "child image")
     table_size = Param.Int(65536, "initial table size")
+    image_file = ""
index 868f969a611846d469eebbd8fdd19bd2f31e305f..2b5dd1bc2b1b5271be12035837586436e1788a39 100644 (file)
@@ -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):