From: Ali Saidi Date: Fri, 13 Jun 2008 05:09:06 +0000 (-0400) Subject: Scripts: Check for the appropriate build type as soon as possible. X-Git-Tag: m5_2.0_beta6~124^2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7e6728450fb7bb430f3fb96143cf3bc634407213;p=gem5.git Scripts: Check for the appropriate build type as soon as possible. --- diff --git a/configs/example/fs.py b/configs/example/fs.py index abfd3cc47..5b5d26c90 100644 --- a/configs/example/fs.py +++ b/configs/example/fs.py @@ -29,6 +29,10 @@ import optparse, os, sys import m5 + +if not m5.build_env['FULL_SYSTEM']: + m5.panic("This script requires full-system mode (*_FS).") + from m5.objects import * m5.AddToPath('../common') from FSConfig import * @@ -37,9 +41,6 @@ from Benchmarks import * import Simulation from Caches import * -if not m5.build_env['FULL_SYSTEM']: - m5.panic("This script requires full-system mode (ALPHA_FS).") - # Get paths we might need. It's expected this file is in m5/configs/example. config_path = os.path.dirname(os.path.abspath(__file__)) config_root = os.path.dirname(config_path) diff --git a/configs/example/se.py b/configs/example/se.py index 3d3f28a72..fa7959b99 100644 --- a/configs/example/se.py +++ b/configs/example/se.py @@ -31,6 +31,10 @@ # "m5 test.py" import m5 + +if m5.build_env['FULL_SYSTEM']: + m5.panic("This script requires syscall emulation mode (*_SE).") + from m5.objects import * import os, optparse, sys m5.AddToPath('../common')