se.py (10547:b61dc895269a) se.py (10555:9f456b5cc474)
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

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

57import Options
58import Ruby
59import Simulation
60import CacheConfig
61import MemConfig
62from Caches import *
63from cpu2000 import *
64
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

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

57import Options
58import Ruby
59import Simulation
60import CacheConfig
61import MemConfig
62from Caches import *
63from cpu2000 import *
64
65# Check if KVM support has been enabled, we might need to do VM
66# configuration if that's the case.
67have_kvm_support = 'BaseKvmCPU' in globals()
68def is_kvm_cpu(cpu_class):
69 return have_kvm_support and cpu_class != None and \
70 issubclass(cpu_class, BaseKvmCPU)
71
65def get_processes(options):
66 """Interprets provided options and returns a list of processes"""
67
68 multiprocesses = []
69 inputs = []
70 outputs = []
71 errouts = []
72 pargs = []

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

182 voltage_domain =
183 system.cpu_voltage_domain)
184
185# All cpus belong to a common cpu_clk_domain, therefore running at a common
186# frequency.
187for cpu in system.cpu:
188 cpu.clk_domain = system.cpu_clk_domain
189
72def get_processes(options):
73 """Interprets provided options and returns a list of processes"""
74
75 multiprocesses = []
76 inputs = []
77 outputs = []
78 errouts = []
79 pargs = []

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

189 voltage_domain =
190 system.cpu_voltage_domain)
191
192# All cpus belong to a common cpu_clk_domain, therefore running at a common
193# frequency.
194for cpu in system.cpu:
195 cpu.clk_domain = system.cpu_clk_domain
196
197if is_kvm_cpu(CPUClass) or is_kvm_cpu(FutureClass):
198 if buildEnv['TARGET_ISA'] == 'x86':
199 system.vm = KvmVM()
200 for process in multiprocesses:
201 process.useArchPT = True
202 process.kvmInSE = True
203 else:
204 fatal("KvmCPU can only be used in SE mode with x86")
205
190# Sanity check
191if options.fastmem:
192 if CPUClass != AtomicSimpleCPU:
193 fatal("Fastmem can only be used with atomic CPU!")
194 if (options.caches or options.l2cache):
195 fatal("You cannot use fastmem in combination with caches!")
196
197if options.simpoint_profile:

--- 61 unchanged lines hidden ---
206# Sanity check
207if options.fastmem:
208 if CPUClass != AtomicSimpleCPU:
209 fatal("Fastmem can only be used with atomic CPU!")
210 if (options.caches or options.l2cache):
211 fatal("You cannot use fastmem in combination with caches!")
212
213if options.simpoint_profile:

--- 61 unchanged lines hidden ---