fs.py (8803:f6c5785bc8fd) | fs.py (8810:00f0d0230596) |
---|---|
1# Copyright (c) 2010-2011 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 --- 179 unchanged lines hidden (view full) --- 188 drive_sys = makeArmSystem(drive_mem_mode, options.machine_type, bm[1]) 189 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) | 1# Copyright (c) 2010-2011 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 --- 179 unchanged lines hidden (view full) --- 188 drive_sys = makeArmSystem(drive_mem_mode, options.machine_type, bm[1]) 189 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 drive_sys.iobridge = Bridge(delay='50ns', nack_delay='4ns', 197 ranges = [AddrRange(bm[1].mem())]) 198 drive_sys.iobridge.slave = drive_sys.iobus.port 199 drive_sys.iobridge.master = drive_sys.membus.port |
|
196 197 drive_sys.init_param = options.init_param 198 root = makeDualRoot(True, test_sys, drive_sys, options.etherdump) 199elif len(bm) == 1: 200 root = Root(full_system=True, system=test_sys) 201else: 202 print "Error I don't know how to create more than 2 systems." 203 sys.exit(1) 204 205if options.timesync: 206 root.time_sync_enable = True 207 208if options.frame_capture: 209 VncServer.frame_capture = True 210 211Simulation.run(options, root, test_sys, FutureClass) | 200 201 drive_sys.init_param = options.init_param 202 root = makeDualRoot(True, test_sys, drive_sys, options.etherdump) 203elif len(bm) == 1: 204 root = Root(full_system=True, system=test_sys) 205else: 206 print "Error I don't know how to create more than 2 systems." 207 sys.exit(1) 208 209if options.timesync: 210 root.time_sync_enable = True 211 212if options.frame_capture: 213 VncServer.frame_capture = True 214 215Simulation.run(options, root, test_sys, FutureClass) |