base_config.py (11156:a37dda0f0202) base_config.py (11501:9345c4320477)
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)
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 # System has caches before the membus -> add snoop filter
130 if sha_bus and system.membus.snoop_filter == NULL:
131 system.membus.snoop_filter = SnoopFilter()
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)
132
133 def init_kvm(self, system):
134 """Do KVM-specific system initialization.
135
136 Arguments:
137 system -- System to work on.
138 """
139 system.vm = KvmVM()

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

147 self.create_clk_src(system)
148 system.cpu = self.create_cpus(system.cpu_clk_domain)
149
150 if _have_kvm_support and \
151 any([isinstance(c, BaseKvmCPU) for c in system.cpu]):
152 self.init_kvm(system)
153
154 sha_bus = self.create_caches_shared(system)
155 # System has caches before the membus -> add snoop filter
156 if sha_bus and system.membus.snoop_filter == NULL:
157 system.membus.snoop_filter = SnoopFilter()
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 ---
158 for cpu in system.cpu:
159 self.init_cpu(system, cpu, sha_bus)
160
161 def create_clk_src(self,system):
162 # Create system clock domain. This provides clock value to every
163 # clocked object that lies beneath it unless explicitly overwritten
164 # by a different clock domain.
165 system.voltage_domain = VoltageDomain()

--- 124 unchanged lines hidden ---