Deleted Added
sdiff udiff text old ( 11682:612f75cf36a0 ) new ( 11756:0d38e56356c7 )
full compact
1# Copyright (c) 2016 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

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

74 def __init__(self, system, num_cpus, cpu_clock,
75 cpu_voltage="1.0V"):
76 cpu_config = [ CpuConfig.get("minor"), devices.L1I, devices.L1D,
77 devices.WalkCache, devices.L2 ]
78 super(LittleCluster, self).__init__(system, num_cpus, cpu_clock,
79 cpu_voltage, *cpu_config)
80
81
82def createSystem(kernel, bootscript, disks=[]):
83 sys = devices.SimpleSystem(kernel=SysPaths.binary(kernel),
84 readfile=bootscript,
85 machine_type="DTOnly")
86
87 mem_region = sys.realview._mem_regions[0]
88 sys.mem_ctrls = SimpleMemory(
89 range=AddrRange(start=mem_region[0], size=default_mem_size))
90 sys.mem_ctrls.port = sys.membus.master
91
92 sys.connect()
93
94 # Attach disk images
95 if disks:
96 def cow_disk(image_file):
97 image = CowDiskImage()

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

154 "root=/dev/vda1",
155 "rw",
156 "init=%s" % options.kernel_init,
157 "vmalloc=768MB",
158 ]
159
160 root = Root(full_system=True)
161
162 disks = default_disk if len(options.disk) == 0 else options.disk
163 system = createSystem(options.kernel, options.bootscript, disks=disks)
164
165 root.system = system
166 system.boot_osflags = " ".join(kernel_cmd)
167
168 AtomicCluster = devices.AtomicCluster
169
170 if options.big_cpus + options.little_cpus == 0:
171 m5.util.panic("Empty CPU clusters")

--- 61 unchanged lines hidden ---