Deleted Added
sdiff udiff text old ( 11156:a37dda0f0202 ) new ( 11501:9345c4320477 )
full compact
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

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

121 system -- System to work on.
122 cpu -- CPU to initialize.
123 """
124 if not cpu.switched_out:
125 self.create_caches_private(cpu)
126 cpu.createInterruptController()
127 cpu.connectAllPorts(sha_bus if sha_bus != None else system.membus,
128 system.membus)
129
130 def init_kvm(self, system):
131 """Do KVM-specific system initialization.
132
133 Arguments:
134 system -- System to work on.
135 """
136 system.vm = KvmVM()

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

144 self.create_clk_src(system)
145 system.cpu = self.create_cpus(system.cpu_clk_domain)
146
147 if _have_kvm_support and \
148 any([isinstance(c, BaseKvmCPU) for c in system.cpu]):
149 self.init_kvm(system)
150
151 sha_bus = self.create_caches_shared(system)
152 for cpu in system.cpu:
153 self.init_cpu(system, cpu, sha_bus)
154
155 def create_clk_src(self,system):
156 # Create system clock domain. This provides clock value to every
157 # clocked object that lies beneath it unless explicitly overwritten
158 # by a different clock domain.
159 system.voltage_domain = VoltageDomain()

--- 124 unchanged lines hidden ---