fs.py (8661:2d791d07c59b) fs.py (8713:2f1a3e335255)
1# Copyright (c) 2010 ARM Limited
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
9# terms below provided that you ensure that this notice is replicated

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

152 test_sys.readfile = options.script
153
154test_sys.init_param = options.init_param
155
156test_sys.cpu = [TestCPUClass(cpu_id=i) for i in xrange(np)]
157
158CacheConfig.config_cache(options, test_sys)
159
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
9# terms below provided that you ensure that this notice is replicated

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

152 test_sys.readfile = options.script
153
154test_sys.init_param = options.init_param
155
156test_sys.cpu = [TestCPUClass(cpu_id=i) for i in xrange(np)]
157
158CacheConfig.config_cache(options, test_sys)
159
160if bm[0]:
161 mem_size = bm[0].mem()
162else:
163 mem_size = SysConfig().mem()
160if options.caches or options.l2cache:
164if options.caches or options.l2cache:
161 if bm[0]:
162 mem_size = bm[0].mem()
163 else:
164 mem_size = SysConfig().mem()
165 # For x86, we need to poke a hole for interrupt messages to get back to the
166 # CPU. These use a portion of the physical address space which has a
167 # non-zero prefix in the top nibble. Normal memory accesses have a 0
168 # prefix.
169 if buildEnv['TARGET_ISA'] == 'x86':
170 test_sys.bridge.filter_ranges_a=[AddrRange(0, Addr.max >> 4)]
171 else:
172 test_sys.bridge.filter_ranges_a=[AddrRange(0, Addr.max)]
173 test_sys.bridge.filter_ranges_b=[AddrRange(mem_size)]
174 test_sys.iocache = IOCache(addr_range=mem_size)
175 test_sys.iocache.cpu_side = test_sys.iobus.port
176 test_sys.iocache.mem_side = test_sys.membus.port
165 test_sys.iocache = IOCache(addr_range=mem_size)
166 test_sys.iocache.cpu_side = test_sys.iobus.port
167 test_sys.iocache.mem_side = test_sys.membus.port
168else:
169 test_sys.iobridge = Bridge(delay='50ns', nack_delay='4ns',
170 ranges = [AddrRange(0, mem_size)])
171 test_sys.iobridge.slave = test_sys.iobus.port
172 test_sys.iobridge.master = test_sys.membus.port
177
178for i in xrange(np):
179 if options.fastmem:
180 test_sys.cpu[i].physmem_port = test_sys.physmem.port
181
182if buildEnv['TARGET_ISA'] == 'mips':
183 setMipsOptions(TestCPUClass)
184

--- 34 unchanged lines hidden ---
173
174for i in xrange(np):
175 if options.fastmem:
176 test_sys.cpu[i].physmem_port = test_sys.physmem.port
177
178if buildEnv['TARGET_ISA'] == 'mips':
179 setMipsOptions(TestCPUClass)
180

--- 34 unchanged lines hidden ---