fs.py (8839:eeb293859255) fs.py (8845:a230379caf65)
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

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

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())])
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

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

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
198 drive_sys.iobridge.slave = drive_sys.iobus.master
199 drive_sys.iobridge.master = drive_sys.membus.slave
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)
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)