Deleted Added
sdiff udiff text old ( 9539:0ac00d9a8aaf ) new ( 9653:5307d06e1d0e )
full compact
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

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

66 print "Error: script doesn't take any positional arguments"
67 sys.exit(1)
68
69# driver system CPU is always simple... note this is an assignment of
70# a class, not an instance.
71DriveCPUClass = AtomicSimpleCPU
72drive_mem_mode = 'atomic'
73
74# system under test can be any CPU
75(TestCPUClass, test_mem_mode, FutureClass) = Simulation.setCPUClass(options)
76
77TestCPUClass.clock = options.clock
78DriveCPUClass.clock = options.clock
79
80if options.benchmark:
81 try:

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

111
112if options.script is not None:
113 test_sys.readfile = options.script
114
115test_sys.init_param = options.init_param
116
117test_sys.cpu = [TestCPUClass(cpu_id=i) for i in xrange(np)]
118
119if options.caches or options.l2cache:
120 test_sys.iocache = IOCache(clock = '1GHz',
121 addr_ranges = test_sys.mem_ranges)
122 test_sys.iocache.cpu_side = test_sys.iobus.master
123 test_sys.iocache.mem_side = test_sys.membus.slave
124else:
125 test_sys.iobridge = Bridge(delay='50ns', ranges = test_sys.mem_ranges)
126 test_sys.iobridge.slave = test_sys.iobus.master

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

158 drive_sys.cpu.createThreads()
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)
165
166 drive_sys.iobridge = Bridge(delay='50ns',
167 ranges = drive_sys.mem_ranges)
168 drive_sys.iobridge.slave = drive_sys.iobus.master
169 drive_sys.iobridge.master = drive_sys.membus.slave
170
171 drive_sys.init_param = options.init_param
172 root = makeDualRoot(True, test_sys, drive_sys, options.etherdump)
173elif len(bm) == 1:

--- 13 unchanged lines hidden ---