fs_bigLITTLE.py (13357:110926e15f1f) fs_bigLITTLE.py (13608:e91969b61d3d)
1# Copyright (c) 2016-2017 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

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

256 # Create a KVM VM and do KVM-specific configuration
257 if issubclass(big_model, KvmCluster):
258 _build_kvm(system, all_cpus)
259
260 # Linux device tree
261 if options.dtb is not None:
262 system.dtb_filename = SysPaths.binary(options.dtb)
263 else:
1# Copyright (c) 2016-2017 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

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

256 # Create a KVM VM and do KVM-specific configuration
257 if issubclass(big_model, KvmCluster):
258 _build_kvm(system, all_cpus)
259
260 # Linux device tree
261 if options.dtb is not None:
262 system.dtb_filename = SysPaths.binary(options.dtb)
263 else:
264 def create_dtb_for_system(system, filename):
265 state = FdtState(addr_cells=2, size_cells=2, cpu_cells=1)
266 rootNode = system.generateDeviceTree(state)
264 system.generateDtb(m5.options.outdir, 'system.dtb')
267
265
268 fdt = Fdt()
269 fdt.add_rootnode(rootNode)
270 dtb_filename = os.path.join(m5.options.outdir, filename)
271 return fdt.writeDtbFile(dtb_filename)
272
273 system.dtb_filename = create_dtb_for_system(system, 'system.dtb')
274
275 return root
276
277def _build_kvm(system, cpus):
278 system.kvm_vm = KvmVM()
279
280 # Assign KVM CPUs to their own event queues / threads. This
281 # has to be done after creating caches and other child objects
282 # since these mustn't inherit the CPU event queue.

--- 65 unchanged lines hidden ---
266 return root
267
268def _build_kvm(system, cpus):
269 system.kvm_vm = KvmVM()
270
271 # Assign KVM CPUs to their own event queues / threads. This
272 # has to be done after creating caches and other child objects
273 # since these mustn't inherit the CPU event queue.

--- 65 unchanged lines hidden ---