fs.py (7861:4ebff121cc0e) | fs.py (7876:189b9b258779) |
---|---|
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 --- 164 unchanged lines hidden (view full) --- 173 drive_sys = makeLinuxMipsSystem(drive_mem_mode, bm[1]) 174 elif buildEnv['TARGET_ISA'] == 'sparc': 175 drive_sys = makeSparcSystem(drive_mem_mode, bm[1]) 176 elif buildEnv['TARGET_ISA'] == 'x86': 177 drive_sys = makeX86System(drive_mem_mode, np, bm[1]) 178 elif buildEnv['TARGET_ISA'] == 'arm': 179 drive_sys = makeLinuxArmSystem(drive_mem_mode, bm[1]) 180 drive_sys.cpu = DriveCPUClass(cpu_id=0) | 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 --- 164 unchanged lines hidden (view full) --- 173 drive_sys = makeLinuxMipsSystem(drive_mem_mode, bm[1]) 174 elif buildEnv['TARGET_ISA'] == 'sparc': 175 drive_sys = makeSparcSystem(drive_mem_mode, bm[1]) 176 elif buildEnv['TARGET_ISA'] == 'x86': 177 drive_sys = makeX86System(drive_mem_mode, np, bm[1]) 178 elif buildEnv['TARGET_ISA'] == 'arm': 179 drive_sys = makeLinuxArmSystem(drive_mem_mode, bm[1]) 180 drive_sys.cpu = DriveCPUClass(cpu_id=0) |
181 drive_sys.cpu.connectMemPorts(drive_sys.membus) | 181 drive_sys.cpu.connectAllPorts(drive_sys.membus) |
182 if options.fastmem: 183 drive_sys.cpu.physmem_port = drive_sys.physmem.port 184 if options.kernel is not None: 185 drive_sys.kernel = binary(options.kernel) 186 187 root = makeDualRoot(test_sys, drive_sys, options.etherdump) 188elif len(bm) == 1: 189 root = Root(system=test_sys) 190else: 191 print "Error I don't know how to create more than 2 systems." 192 sys.exit(1) 193 194if options.timesync: 195 root.time_sync_enable = True 196 197Simulation.run(options, root, test_sys, FutureClass) | 182 if options.fastmem: 183 drive_sys.cpu.physmem_port = drive_sys.physmem.port 184 if options.kernel is not None: 185 drive_sys.kernel = binary(options.kernel) 186 187 root = makeDualRoot(test_sys, drive_sys, options.etherdump) 188elif len(bm) == 1: 189 root = Root(system=test_sys) 190else: 191 print "Error I don't know how to create more than 2 systems." 192 sys.exit(1) 193 194if options.timesync: 195 root.time_sync_enable = True 196 197Simulation.run(options, root, test_sys, FutureClass) |