Benchmarks.py (5543:3af77710f397) Benchmarks.py (7869:e9edb137c872)
1# Copyright (c) 2006-2007 The Regents of The University of Michigan
2# All rights reserved.
3#
4# Redistribution and use in source and binary forms, with or without
5# modification, are permitted provided that the following conditions are
6# met: redistributions of source code must retain the above copyright
7# notice, this list of conditions and the following disclaimer;
8# redistributions in binary form must reproduce the above copyright

--- 13 unchanged lines hidden (view full) ---

22# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
25# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26#
27# Authors: Ali Saidi
28
29from SysPaths import *
1# Copyright (c) 2006-2007 The Regents of The University of Michigan
2# All rights reserved.
3#
4# Redistribution and use in source and binary forms, with or without
5# modification, are permitted provided that the following conditions are
6# met: redistributions of source code must retain the above copyright
7# notice, this list of conditions and the following disclaimer;
8# redistributions in binary form must reproduce the above copyright

--- 13 unchanged lines hidden (view full) ---

22# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
25# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26#
27# Authors: Ali Saidi
28
29from SysPaths import *
30from m5.defines import buildEnv
30
31class SysConfig:
32 def __init__(self, script=None, mem=None, disk=None):
33 self.scriptname = script
34 self.diskname = disk
35 self.memsize = mem
36
37 def script(self):

--- 6 unchanged lines hidden (view full) ---

44 if self.memsize:
45 return self.memsize
46 else:
47 return '128MB'
48
49 def disk(self):
50 if self.diskname:
51 return disk(self.diskname)
31
32class SysConfig:
33 def __init__(self, script=None, mem=None, disk=None):
34 self.scriptname = script
35 self.diskname = disk
36 self.memsize = mem
37
38 def script(self):

--- 6 unchanged lines hidden (view full) ---

45 if self.memsize:
46 return self.memsize
47 else:
48 return '128MB'
49
50 def disk(self):
51 if self.diskname:
52 return disk(self.diskname)
52 else:
53 elif buildEnv['TARGET_ISA'] == 'alpha':
53 return env.get('LINUX_IMAGE', disk('linux-latest.img'))
54 return env.get('LINUX_IMAGE', disk('linux-latest.img'))
55 elif buildEnv['TARGET_ISA'] == 'x86':
56 return env.get('LINUX_IMAGE', disk('x86root.img'))
57 else:
58 print "Don't know what default disk image to use for ISA %s" % \
59 buildEnv['TARGET_ISA']
60 sys.exit(1)
54
55# Benchmarks are defined as a key in a dict which is a list of SysConfigs
56# The first defined machine is the test system, the others are driving systems
57
58Benchmarks = {
59 'PovrayBench': [SysConfig('povray-bench.rcS', '512MB', 'povray.img')],
60 'PovrayAutumn': [SysConfig('povray-autumn.rcS', '512MB', 'povray.img')],
61

--- 50 unchanged lines hidden ---
61
62# Benchmarks are defined as a key in a dict which is a list of SysConfigs
63# The first defined machine is the test system, the others are driving systems
64
65Benchmarks = {
66 'PovrayBench': [SysConfig('povray-bench.rcS', '512MB', 'povray.img')],
67 'PovrayAutumn': [SysConfig('povray-autumn.rcS', '512MB', 'povray.img')],
68

--- 50 unchanged lines hidden ---