se.py (12941:24771c7aee2e) se.py (13012:5fbc6b9c64bc)
1# Copyright (c) 2012-2013 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

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

208 system.kvm_vm = KvmVM()
209 for process in multiprocesses:
210 process.useArchPT = True
211 process.kvmInSE = True
212 else:
213 fatal("KvmCPU can only be used in SE mode with x86")
214
215# Sanity check
1# Copyright (c) 2012-2013 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

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

208 system.kvm_vm = KvmVM()
209 for process in multiprocesses:
210 process.useArchPT = True
211 process.kvmInSE = True
212 else:
213 fatal("KvmCPU can only be used in SE mode with x86")
214
215# Sanity check
216if options.fastmem:
217 if CPUClass != AtomicSimpleCPU:
218 fatal("Fastmem can only be used with atomic CPU!")
219 if (options.caches or options.l2cache):
220 fatal("You cannot use fastmem in combination with caches!")
221
222if options.simpoint_profile:
216if options.simpoint_profile:
223 if not options.fastmem:
224 # Atomic CPU checked with fastmem option already
225 fatal("SimPoint generation should be done with atomic cpu and fastmem")
217 if not CpuConfig.is_atomic_cpu(TestCPUClass):
218 fatal("SimPoint/BPProbe should be done with an atomic cpu")
226 if np > 1:
227 fatal("SimPoint generation not supported with more than one CPUs")
228
229for i in xrange(np):
230 if options.smt:
231 system.cpu[i].workload = multiprocesses
232 elif len(multiprocesses) == 1:
233 system.cpu[i].workload = multiprocesses[0]
234 else:
235 system.cpu[i].workload = multiprocesses[i]
236
219 if np > 1:
220 fatal("SimPoint generation not supported with more than one CPUs")
221
222for i in xrange(np):
223 if options.smt:
224 system.cpu[i].workload = multiprocesses
225 elif len(multiprocesses) == 1:
226 system.cpu[i].workload = multiprocesses[0]
227 else:
228 system.cpu[i].workload = multiprocesses[i]
229
237 if options.fastmem:
238 system.cpu[i].fastmem = True
239
240 if options.simpoint_profile:
241 system.cpu[i].addSimPointProbe(options.simpoint_interval)
242
243 if options.checker:
244 system.cpu[i].addCheckerCpu()
245
246 system.cpu[i].createThreads()
247

--- 32 unchanged lines hidden ---
230 if options.simpoint_profile:
231 system.cpu[i].addSimPointProbe(options.simpoint_interval)
232
233 if options.checker:
234 system.cpu[i].addCheckerCpu()
235
236 system.cpu[i].createThreads()
237

--- 32 unchanged lines hidden ---