fs.py (9129:b57966a6c512) fs.py (9164:d112473185ea)
1# Copyright (c) 2010-2012 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

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

121 mem_size = bm[0].mem()
122else:
123 mem_size = SysConfig().mem()
124if options.caches or options.l2cache:
125 test_sys.iocache = IOCache(addr_ranges=[test_sys.physmem.range])
126 test_sys.iocache.cpu_side = test_sys.iobus.master
127 test_sys.iocache.mem_side = test_sys.membus.slave
128else:
1# Copyright (c) 2010-2012 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

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

121 mem_size = bm[0].mem()
122else:
123 mem_size = SysConfig().mem()
124if options.caches or options.l2cache:
125 test_sys.iocache = IOCache(addr_ranges=[test_sys.physmem.range])
126 test_sys.iocache.cpu_side = test_sys.iobus.master
127 test_sys.iocache.mem_side = test_sys.membus.slave
128else:
129 test_sys.iobridge = Bridge(delay='50ns', nack_delay='4ns',
130 ranges = [test_sys.physmem.range])
129 test_sys.iobridge = Bridge(delay='50ns', ranges = [test_sys.physmem.range])
131 test_sys.iobridge.slave = test_sys.iobus.master
132 test_sys.iobridge.master = test_sys.membus.slave
133
134# Sanity check
135if options.fastmem and (options.caches or options.l2cache):
136 fatal("You cannot use fastmem in combination with caches!")
137
138for i in xrange(np):

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

157
158 drive_sys.cpu = DriveCPUClass(cpu_id=0)
159 drive_sys.cpu.createInterruptController()
160 drive_sys.cpu.connectAllPorts(drive_sys.membus)
161 if options.fastmem:
162 drive_sys.cpu.fastmem = True
163 if options.kernel is not None:
164 drive_sys.kernel = binary(options.kernel)
130 test_sys.iobridge.slave = test_sys.iobus.master
131 test_sys.iobridge.master = test_sys.membus.slave
132
133# Sanity check
134if options.fastmem and (options.caches or options.l2cache):
135 fatal("You cannot use fastmem in combination with caches!")
136
137for i in xrange(np):

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

156
157 drive_sys.cpu = DriveCPUClass(cpu_id=0)
158 drive_sys.cpu.createInterruptController()
159 drive_sys.cpu.connectAllPorts(drive_sys.membus)
160 if options.fastmem:
161 drive_sys.cpu.fastmem = True
162 if options.kernel is not None:
163 drive_sys.kernel = binary(options.kernel)
165 drive_sys.iobridge = Bridge(delay='50ns', nack_delay='4ns',
166 ranges = [drive_sys.physmem.range])
164 drive_sys.iobridge = Bridge(delay='50ns',
165 ranges = [drive_sys.physmem.range])
167 drive_sys.iobridge.slave = drive_sys.iobus.master
168 drive_sys.iobridge.master = drive_sys.membus.slave
169
170 drive_sys.init_param = options.init_param
171 root = makeDualRoot(True, test_sys, drive_sys, options.etherdump)
172elif len(bm) == 1:
173 root = Root(full_system=True, system=test_sys)
174else:
175 print "Error I don't know how to create more than 2 systems."
176 sys.exit(1)
177
178if options.timesync:
179 root.time_sync_enable = True
180
181if options.frame_capture:
182 VncServer.frame_capture = True
183
184Simulation.setWorkCountOptions(test_sys, options)
185Simulation.run(options, root, test_sys, FutureClass)
166 drive_sys.iobridge.slave = drive_sys.iobus.master
167 drive_sys.iobridge.master = drive_sys.membus.slave
168
169 drive_sys.init_param = options.init_param
170 root = makeDualRoot(True, test_sys, drive_sys, options.etherdump)
171elif len(bm) == 1:
172 root = Root(full_system=True, system=test_sys)
173else:
174 print "Error I don't know how to create more than 2 systems."
175 sys.exit(1)
176
177if options.timesync:
178 root.time_sync_enable = True
179
180if options.frame_capture:
181 VncServer.frame_capture = True
182
183Simulation.setWorkCountOptions(test_sys, options)
184Simulation.run(options, root, test_sys, FutureClass)