summaryrefslogtreecommitdiff
path: root/configs/common/Benchmarks.py
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2011-02-02 18:03:58 -0800
committerGabe Black <gblack@eecs.umich.edu>2011-02-02 18:03:58 -0800
commitc4b81d311e824580666e1a620576a59528702b27 (patch)
tree734ecf4721586047b46e4213a11a77cb1b4d1111 /configs/common/Benchmarks.py
parent119f5f8e94e673b1495dccce03b54773dc18afea (diff)
downloadgem5-c4b81d311e824580666e1a620576a59528702b27.tar.xz
X86: Change how the default disk image gets set up.
The disk image to use was always being forced to a particular value. This change changes what disk image is selected as the default based on the architecture being built. In the future, a more sophisticated system might be used that selected a path based on certain rules instead of relying on one off file names.
Diffstat (limited to 'configs/common/Benchmarks.py')
-rw-r--r--configs/common/Benchmarks.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/configs/common/Benchmarks.py b/configs/common/Benchmarks.py
index 9a1657e01..d1c69d3f8 100644
--- a/configs/common/Benchmarks.py
+++ b/configs/common/Benchmarks.py
@@ -27,6 +27,7 @@
# Authors: Ali Saidi
from SysPaths import *
+from m5.defines import buildEnv
class SysConfig:
def __init__(self, script=None, mem=None, disk=None):
@@ -49,8 +50,14 @@ class SysConfig:
def disk(self):
if self.diskname:
return disk(self.diskname)
- else:
+ elif buildEnv['TARGET_ISA'] == 'alpha':
return env.get('LINUX_IMAGE', disk('linux-latest.img'))
+ elif buildEnv['TARGET_ISA'] == 'x86':
+ return env.get('LINUX_IMAGE', disk('x86root.img'))
+ else:
+ print "Don't know what default disk image to use for ISA %s" % \
+ buildEnv['TARGET_ISA']
+ sys.exit(1)
# Benchmarks are defined as a key in a dict which is a list of SysConfigs
# The first defined machine is the test system, the others are driving systems