diff options
author | Ali Saidi <saidi@eecs.umich.edu> | 2008-06-13 01:09:06 -0400 |
---|---|---|
committer | Ali Saidi <saidi@eecs.umich.edu> | 2008-06-13 01:09:06 -0400 |
commit | 7e6728450fb7bb430f3fb96143cf3bc634407213 (patch) | |
tree | abf3422e714bebecab188a650cb5fdcafb7b30f7 /configs/example/fs.py | |
parent | 907b28cc626e8b156d98187b0f91f5e8df0e9d56 (diff) | |
download | gem5-7e6728450fb7bb430f3fb96143cf3bc634407213.tar.xz |
Scripts: Check for the appropriate build type as soon as possible.
Diffstat (limited to 'configs/example/fs.py')
-rw-r--r-- | configs/example/fs.py | 7 |
1 files changed, 4 insertions, 3 deletions
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) |