se.py (8706:b1838faf3bcc) se.py (8718:062bf3879857)
1# Copyright (c) 2012 ARM Limited
2# All rights reserved.
3#
4# The license below extends only to copyright in the software and shall
5# not be construed as granting a license to any other intellectual
6# property including but not limited to intellectual property relating
7# to a hardware implementation of the functionality of the software
8# licensed hereunder. You may use the software subject to the license

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

159 smt_process.input = inputs[smt_idx]
160 if outputs and outputs[smt_idx]:
161 smt_process.output = outputs[smt_idx]
162 if errouts and errouts[smt_idx]:
163 smt_process.errout = errouts[smt_idx]
164 process += [smt_process, ]
165 smt_idx += 1
166 numThreads = len(workloads)
1# Copyright (c) 2012 ARM Limited
2# All rights reserved.
3#
4# The license below extends only to copyright in the software and shall
5# not be construed as granting a license to any other intellectual
6# property including but not limited to intellectual property relating
7# to a hardware implementation of the functionality of the software
8# licensed hereunder. You may use the software subject to the license

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

159 smt_process.input = inputs[smt_idx]
160 if outputs and outputs[smt_idx]:
161 smt_process.output = outputs[smt_idx]
162 if errouts and errouts[smt_idx]:
163 smt_process.errout = errouts[smt_idx]
164 process += [smt_process, ]
165 smt_idx += 1
166 numThreads = len(workloads)
167
167
168if options.ruby:
168if options.ruby:
169 if options.cpu_type == "detailed":
170 print >> sys.stderr, "Ruby only works with TimingSimpleCPU!!"
169 if not (options.cpu_type == "detailed" or options.cpu_type == "timing"):
170 print >> sys.stderr, "Ruby requires TimingSimpleCPU or O3CPU!!"
171 sys.exit(1)
171 sys.exit(1)
172 elif not options.cpu_type == "timing":
173 print >> sys.stderr, "****WARN: using Timing CPU since it's needed by Ruby"
174
172
175 class CPUClass(TimingSimpleCPU): pass
176 test_mem_mode = 'timing'
177 FutureClass = None
178else:
179 (CPUClass, test_mem_mode, FutureClass) = Simulation.setCPUClass(options)
180
173(CPUClass, test_mem_mode, FutureClass) = Simulation.setCPUClass(options)
181CPUClass.clock = '2GHz'
182CPUClass.numThreads = numThreads;
183
184np = options.num_cpus
185
186system = System(cpu = [CPUClass(cpu_id=i) for i in xrange(np)],
187 physmem = PhysicalMemory(range=AddrRange("512MB")),
188 membus = Bus(), mem_mode = test_mem_mode)

--- 24 unchanged lines hidden ---
174CPUClass.clock = '2GHz'
175CPUClass.numThreads = numThreads;
176
177np = options.num_cpus
178
179system = System(cpu = [CPUClass(cpu_id=i) for i in xrange(np)],
180 physmem = PhysicalMemory(range=AddrRange("512MB")),
181 membus = Bus(), mem_mode = test_mem_mode)

--- 24 unchanged lines hidden ---