Benchmarks.py (11949:db6d68484756) Benchmarks.py (12564:2778478ca882)
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

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

21# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
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
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

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

21# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
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 __future__ import print_function
30
29from SysPaths import script, disk, binary
30from os import environ as env
31from m5.defines import buildEnv
32
33class SysConfig:
34 def __init__(self, script=None, mem=None, disk=None, rootdev=None,
35 os_type='linux'):
36 self.scriptname = script

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

58 return env.get('LINUX_IMAGE', disk('linux-latest.img'))
59 elif buildEnv['TARGET_ISA'] == 'x86':
60 return env.get('LINUX_IMAGE', disk('x86root.img'))
61 elif buildEnv['TARGET_ISA'] == 'arm':
62 return env.get('LINUX_IMAGE', disk('linux-aarch32-ael.img'))
63 elif buildEnv['TARGET_ISA'] == 'sparc':
64 return env.get('LINUX_IMAGE', disk('disk.s10hw2'))
65 else:
31from SysPaths import script, disk, binary
32from os import environ as env
33from m5.defines import buildEnv
34
35class SysConfig:
36 def __init__(self, script=None, mem=None, disk=None, rootdev=None,
37 os_type='linux'):
38 self.scriptname = script

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

60 return env.get('LINUX_IMAGE', disk('linux-latest.img'))
61 elif buildEnv['TARGET_ISA'] == 'x86':
62 return env.get('LINUX_IMAGE', disk('x86root.img'))
63 elif buildEnv['TARGET_ISA'] == 'arm':
64 return env.get('LINUX_IMAGE', disk('linux-aarch32-ael.img'))
65 elif buildEnv['TARGET_ISA'] == 'sparc':
66 return env.get('LINUX_IMAGE', disk('disk.s10hw2'))
67 else:
66 print "Don't know what default disk image to use for %s ISA" % \
67 buildEnv['TARGET_ISA']
68 print("Don't know what default disk image to use for %s ISA" %
69 buildEnv['TARGET_ISA'])
68 exit(1)
69
70 def rootdev(self):
71 if self.root:
72 return self.root
73 else:
74 return '/dev/sda1'
75

--- 69 unchanged lines hidden ---
70 exit(1)
71
72 def rootdev(self):
73 if self.root:
74 return self.root
75 else:
76 return '/dev/sda1'
77

--- 69 unchanged lines hidden ---