Include check for making sure caches are enabled.
authorKevin Lim <ktlim@umich.edu>
Sun, 26 Nov 2006 16:46:58 +0000 (11:46 -0500)
committerKevin Lim <ktlim@umich.edu>
Sun, 26 Nov 2006 16:46:58 +0000 (11:46 -0500)
--HG--
extra : convert_revision : e3902b065db524ebe5bf762e44a840133ccb8d75

configs/common/Simulation.py

index 374ff3fc2521598a38a00da9ad09c545fd6bd2ee..e037d03436cd091dd6e29947fc521a993d51a4e4 100644 (file)
@@ -39,6 +39,9 @@ def setCPUClass(options):
     if options.timing:
         TmpClass = TimingSimpleCPU
     elif options.detailed:
+        if not options.caches:
+            print "O3 CPU must be used with caches"
+            sys.exit(1)
         TmpClass = DerivO3CPU
     else:
         TmpClass = AtomicSimpleCPU