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 --- 17 unchanged lines hidden (view full) --- 26# 27# Authors: Ali Saidi 28 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 self.scriptname = script 36 self.diskname = disk 37 self.memsize = mem |
38 self.root = rootdev |
39 40 def script(self): 41 if self.scriptname: 42 return script(self.scriptname) 43 else: 44 return '' 45 46 def mem(self): --- 11 unchanged lines hidden (view full) --- 58 return env.get('LINUX_IMAGE', disk('x86root.img')) 59 elif buildEnv['TARGET_ISA'] == 'arm': 60 return env.get('LINUX_IMAGE', disk('linux-aarch32-ael.img')) 61 else: 62 print "Don't know what default disk image to use for %s ISA" % \ 63 buildEnv['TARGET_ISA'] 64 exit(1) 65 |
66 def rootdev(self): 67 if self.root: 68 return self.root 69 else: 70 return '/dev/sda1' 71 |
72# Benchmarks are defined as a key in a dict which is a list of SysConfigs 73# The first defined machine is the test system, the others are driving systems 74 75Benchmarks = { 76 'PovrayBench': [SysConfig('povray-bench.rcS', '512MB', 'povray.img')], 77 'PovrayAutumn': [SysConfig('povray-autumn.rcS', '512MB', 'povray.img')], 78 79 'NetperfStream': [SysConfig('netperf-stream-client.rcS'), --- 54 unchanged lines hidden --- |