1# Copyright (c) 2010-2012, 2015-2019 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 9# terms below provided that you ensure that this notice is replicated --- 191 unchanged lines hidden (view full) --- 201 self.partition_desc_bin = binary('1up-md.bin') 202 203 self.system_port = self.membus.slave 204 205 return self 206 207def makeArmSystem(mem_mode, machine_type, num_cpus=1, mdesc=None, 208 dtb_filename=None, bare_metal=False, cmdline=None, |
209 external_memory="", ruby=False, security=False): |
210 assert machine_type 211 212 pci_devices = [] 213 214 if bare_metal: 215 self = ArmSystem() 216 else: 217 self = LinuxArmSystem() --- 14 unchanged lines hidden (view full) --- 232 self.mem_mode = mem_mode 233 234 platform_class = PlatformConfig.get(machine_type) 235 # Resolve the real platform name, the original machine_type 236 # variable might have been an alias. 237 machine_type = platform_class.__name__ 238 self.realview = platform_class() 239 |
240 if isinstance(self.realview, VExpress_EMM64): 241 if os.path.split(mdesc.disk())[-1] == 'linux-aarch32-ael.img': 242 print("Selected 64-bit ARM architecture, updating default " 243 "disk image...") 244 mdesc.diskname = 'linaro-minimal-aarch64.img' 245 246 247 # Attach any PCI devices this platform supports --- 31 unchanged lines hidden (view full) --- 279 " another platform") 280 281 self.have_security = security 282 283 if bare_metal: 284 # EOT character on UART will end the simulation 285 self.realview.uart[0].end_on_eot = True 286 else: |
287 if dtb_filename: |
288 self.dtb_filename = binary(dtb_filename) 289 290 self.machine_type = machine_type if machine_type in ArmMachineType.map \ 291 else "DTOnly" 292 293 # Ensure that writes to the UART actually go out early in the boot 294 if not cmdline: 295 cmdline = 'earlyprintk=pl011,0x1c090000 console=ttyAMA0 ' + \ --- 423 unchanged lines hidden --- |