fs.py (7925:6823ef6d7a9f) | fs.py (8061:08e91664adac) |
---|---|
1# Copyright (c) 2010 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 --- 120 unchanged lines hidden (view full) --- 129elif buildEnv['TARGET_ISA'] == "mips": 130 test_sys = makeLinuxMipsSystem(test_mem_mode, bm[0]) 131elif buildEnv['TARGET_ISA'] == "sparc": 132 test_sys = makeSparcSystem(test_mem_mode, bm[0]) 133elif buildEnv['TARGET_ISA'] == "x86": 134 test_sys = makeLinuxX86System(test_mem_mode, options.num_cpus, bm[0]) 135 setWorkCountOptions(test_sys, options) 136elif buildEnv['TARGET_ISA'] == "arm": | 1# Copyright (c) 2010 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 --- 120 unchanged lines hidden (view full) --- 129elif buildEnv['TARGET_ISA'] == "mips": 130 test_sys = makeLinuxMipsSystem(test_mem_mode, bm[0]) 131elif buildEnv['TARGET_ISA'] == "sparc": 132 test_sys = makeSparcSystem(test_mem_mode, bm[0]) 133elif buildEnv['TARGET_ISA'] == "x86": 134 test_sys = makeLinuxX86System(test_mem_mode, options.num_cpus, bm[0]) 135 setWorkCountOptions(test_sys, options) 136elif buildEnv['TARGET_ISA'] == "arm": |
137 test_sys = makeLinuxArmSystem(test_mem_mode, bm[0], 138 bare_metal=options.bare_metal, machine_type=options.machine_type) | 137 test_sys = makeArmSystem(test_mem_mode, 138 options.machine_type, bm[0], 139 bare_metal=options.bare_metal) |
139else: 140 fatal("incapable of building non-alpha or non-sparc full system!") 141 142if options.kernel is not None: 143 test_sys.kernel = binary(options.kernel) 144 145if options.script is not None: 146 test_sys.readfile = options.script --- 32 unchanged lines hidden (view full) --- 179 drive_sys = makeLinuxAlphaSystem(drive_mem_mode, bm[1]) 180 elif buildEnv['TARGET_ISA'] == 'mips': 181 drive_sys = makeLinuxMipsSystem(drive_mem_mode, bm[1]) 182 elif buildEnv['TARGET_ISA'] == 'sparc': 183 drive_sys = makeSparcSystem(drive_mem_mode, bm[1]) 184 elif buildEnv['TARGET_ISA'] == 'x86': 185 drive_sys = makeX86System(drive_mem_mode, np, bm[1]) 186 elif buildEnv['TARGET_ISA'] == 'arm': | 140else: 141 fatal("incapable of building non-alpha or non-sparc full system!") 142 143if options.kernel is not None: 144 test_sys.kernel = binary(options.kernel) 145 146if options.script is not None: 147 test_sys.readfile = options.script --- 32 unchanged lines hidden (view full) --- 180 drive_sys = makeLinuxAlphaSystem(drive_mem_mode, bm[1]) 181 elif buildEnv['TARGET_ISA'] == 'mips': 182 drive_sys = makeLinuxMipsSystem(drive_mem_mode, bm[1]) 183 elif buildEnv['TARGET_ISA'] == 'sparc': 184 drive_sys = makeSparcSystem(drive_mem_mode, bm[1]) 185 elif buildEnv['TARGET_ISA'] == 'x86': 186 drive_sys = makeX86System(drive_mem_mode, np, bm[1]) 187 elif buildEnv['TARGET_ISA'] == 'arm': |
187 drive_sys = makeLinuxArmSystem(drive_mem_mode, bm[1]) | 188 drive_sys = makeArmSystem(drive_mem_mode, 189 machine_options.machine_type, bm[1]) |
188 drive_sys.cpu = DriveCPUClass(cpu_id=0) 189 drive_sys.cpu.connectAllPorts(drive_sys.membus) 190 if options.fastmem: 191 drive_sys.cpu.physmem_port = drive_sys.physmem.port 192 if options.kernel is not None: 193 drive_sys.kernel = binary(options.kernel) 194 195 root = makeDualRoot(test_sys, drive_sys, options.etherdump) 196elif len(bm) == 1: 197 root = Root(system=test_sys) 198else: 199 print "Error I don't know how to create more than 2 systems." 200 sys.exit(1) 201 202if options.timesync: 203 root.time_sync_enable = True 204 205Simulation.run(options, root, test_sys, FutureClass) | 190 drive_sys.cpu = DriveCPUClass(cpu_id=0) 191 drive_sys.cpu.connectAllPorts(drive_sys.membus) 192 if options.fastmem: 193 drive_sys.cpu.physmem_port = drive_sys.physmem.port 194 if options.kernel is not None: 195 drive_sys.kernel = binary(options.kernel) 196 197 root = makeDualRoot(test_sys, drive_sys, options.etherdump) 198elif len(bm) == 1: 199 root = Root(system=test_sys) 200else: 201 print "Error I don't know how to create more than 2 systems." 202 sys.exit(1) 203 204if options.timesync: 205 root.time_sync_enable = True 206 207Simulation.run(options, root, test_sys, FutureClass) |