Include check for making sure caches are enabled.

--HG--
extra : convert_revision : e3902b065db524ebe5bf762e44a840133ccb8d75
This commit is contained in:
Kevin Lim 2006-11-26 11:46:58 -05:00
parent 28f8318252
commit 07e525e8b7

View file

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