fs.py (6122:9af6fb59752f) fs.py (6135:9327451a8e7a)
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

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

91 print "Valid benchmarks are: %s" % DefinedBenchmarks
92 sys.exit(1)
93else:
94 if options.dual:
95 bm = [SysConfig(), SysConfig()]
96 else:
97 bm = [SysConfig()]
98
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

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

91 print "Valid benchmarks are: %s" % DefinedBenchmarks
92 sys.exit(1)
93else:
94 if options.dual:
95 bm = [SysConfig(), SysConfig()]
96 else:
97 bm = [SysConfig()]
98
99np = options.num_cpus
100
99if m5.build_env['TARGET_ISA'] == "alpha":
100 test_sys = makeLinuxAlphaSystem(test_mem_mode, bm[0])
101elif m5.build_env['TARGET_ISA'] == "mips":
102 test_sys = makeLinuxMipsSystem(test_mem_mode, bm[0])
103elif m5.build_env['TARGET_ISA'] == "sparc":
104 test_sys = makeSparcSystem(test_mem_mode, bm[0])
105elif m5.build_env['TARGET_ISA'] == "x86":
101if m5.build_env['TARGET_ISA'] == "alpha":
102 test_sys = makeLinuxAlphaSystem(test_mem_mode, bm[0])
103elif m5.build_env['TARGET_ISA'] == "mips":
104 test_sys = makeLinuxMipsSystem(test_mem_mode, bm[0])
105elif m5.build_env['TARGET_ISA'] == "sparc":
106 test_sys = makeSparcSystem(test_mem_mode, bm[0])
107elif m5.build_env['TARGET_ISA'] == "x86":
106 test_sys = makeLinuxX86System(test_mem_mode, bm[0])
108 test_sys = makeLinuxX86System(test_mem_mode, np, bm[0])
107else:
108 m5.fatal("incapable of building non-alpha or non-sparc full system!")
109
110if options.kernel is not None:
111 test_sys.kernel = binary(options.kernel)
112
113if options.script is not None:
114 test_sys.readfile = options.script
115
109else:
110 m5.fatal("incapable of building non-alpha or non-sparc full system!")
111
112if options.kernel is not None:
113 test_sys.kernel = binary(options.kernel)
114
115if options.script is not None:
116 test_sys.readfile = options.script
117
116np = options.num_cpus
117
118if options.l2cache:
119 test_sys.l2 = L2Cache(size = '2MB')
120 test_sys.tol2bus = Bus()
121 test_sys.l2.cpu_side = test_sys.tol2bus.port
122 test_sys.l2.mem_side = test_sys.membus.port
123
124test_sys.cpu = [TestCPUClass(cpu_id=i) for i in xrange(np)]
125

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

148if len(bm) == 2:
149 if m5.build_env['TARGET_ISA'] == 'alpha':
150 drive_sys = makeLinuxAlphaSystem(drive_mem_mode, bm[1])
151 elif m5.build_env['TARGET_ISA'] == 'mips':
152 drive_sys = makeLinuxMipsSystem(drive_mem_mode, bm[1])
153 elif m5.build_env['TARGET_ISA'] == 'sparc':
154 drive_sys = makeSparcSystem(drive_mem_mode, bm[1])
155 elif m5.build.env['TARGET_ISA'] == 'x86':
118if options.l2cache:
119 test_sys.l2 = L2Cache(size = '2MB')
120 test_sys.tol2bus = Bus()
121 test_sys.l2.cpu_side = test_sys.tol2bus.port
122 test_sys.l2.mem_side = test_sys.membus.port
123
124test_sys.cpu = [TestCPUClass(cpu_id=i) for i in xrange(np)]
125

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

148if len(bm) == 2:
149 if m5.build_env['TARGET_ISA'] == 'alpha':
150 drive_sys = makeLinuxAlphaSystem(drive_mem_mode, bm[1])
151 elif m5.build_env['TARGET_ISA'] == 'mips':
152 drive_sys = makeLinuxMipsSystem(drive_mem_mode, bm[1])
153 elif m5.build_env['TARGET_ISA'] == 'sparc':
154 drive_sys = makeSparcSystem(drive_mem_mode, bm[1])
155 elif m5.build.env['TARGET_ISA'] == 'x86':
156 drive_sys = makeX86System(drive_mem_mode, bm[1])
156 drive_sys = makeX86System(drive_mem_mode, np, bm[1])
157 drive_sys.cpu = DriveCPUClass(cpu_id=0)
158 drive_sys.cpu.connectMemPorts(drive_sys.membus)
159 if options.fastmem:
160 drive_sys.cpu.physmem_port = drive_sys.physmem.port
161 if options.kernel is not None:
162 drive_sys.kernel = binary(options.kernel)
163
164 root = makeDualRoot(test_sys, drive_sys, options.etherdump)
165elif len(bm) == 1:
166 root = Root(system=test_sys)
167else:
168 print "Error I don't know how to create more than 2 systems."
169 sys.exit(1)
170
171Simulation.run(options, root, test_sys, FutureClass)
157 drive_sys.cpu = DriveCPUClass(cpu_id=0)
158 drive_sys.cpu.connectMemPorts(drive_sys.membus)
159 if options.fastmem:
160 drive_sys.cpu.physmem_port = drive_sys.physmem.port
161 if options.kernel is not None:
162 drive_sys.kernel = binary(options.kernel)
163
164 root = makeDualRoot(test_sys, drive_sys, options.etherdump)
165elif len(bm) == 1:
166 root = Root(system=test_sys)
167else:
168 print "Error I don't know how to create more than 2 systems."
169 sys.exit(1)
170
171Simulation.run(options, root, test_sys, FutureClass)