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', ranges = [test_sys.physmem.range]) |
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) |
164 drive_sys.iobridge = Bridge(delay='50ns', 165 ranges = [drive_sys.physmem.range]) |
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) |