se.py (11150:a8a64cca231b) | se.py (11251:a15c86af004a) |
---|---|
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 --- 44 unchanged lines hidden (view full) --- 53 54addToPath('../common') 55addToPath('../ruby') 56 57import Options 58import Ruby 59import Simulation 60import CacheConfig | 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 --- 44 unchanged lines hidden (view full) --- 53 54addToPath('../common') 55addToPath('../ruby') 56 57import Options 58import Ruby 59import Simulation 60import CacheConfig |
61import CpuConfig |
|
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): --- 122 unchanged lines hidden (view full) --- 191# Create a CPU voltage domain 192system.cpu_voltage_domain = VoltageDomain() 193 194# Create a separate clock domain for the CPUs 195system.cpu_clk_domain = SrcClockDomain(clock = options.cpu_clock, 196 voltage_domain = 197 system.cpu_voltage_domain) 198 | 62import MemConfig 63from Caches import * 64from cpu2000 import * 65 66# Check if KVM support has been enabled, we might need to do VM 67# configuration if that's the case. 68have_kvm_support = 'BaseKvmCPU' in globals() 69def is_kvm_cpu(cpu_class): --- 122 unchanged lines hidden (view full) --- 192# Create a CPU voltage domain 193system.cpu_voltage_domain = VoltageDomain() 194 195# Create a separate clock domain for the CPUs 196system.cpu_clk_domain = SrcClockDomain(clock = options.cpu_clock, 197 voltage_domain = 198 system.cpu_voltage_domain) 199 |
200# If elastic tracing is enabled, then configure the cpu and attach the elastic 201# trace probe 202if options.elastic_trace_en: 203 CpuConfig.config_etrace(CPUClass, system.cpu, options) 204 |
|
199# All cpus belong to a common cpu_clk_domain, therefore running at a common 200# frequency. 201for cpu in system.cpu: 202 cpu.clk_domain = system.cpu_clk_domain 203 204if is_kvm_cpu(CPUClass) or is_kvm_cpu(FutureClass): 205 if buildEnv['TARGET_ISA'] == 'x86': 206 system.vm = KvmVM() --- 75 unchanged lines hidden --- | 205# All cpus belong to a common cpu_clk_domain, therefore running at a common 206# frequency. 207for cpu in system.cpu: 208 cpu.clk_domain = system.cpu_clk_domain 209 210if is_kvm_cpu(CPUClass) or is_kvm_cpu(FutureClass): 211 if buildEnv['TARGET_ISA'] == 'x86': 212 system.vm = KvmVM() --- 75 unchanged lines hidden --- |