fs.py (9317:2daeea4bce1b) fs.py (9384:877293183bdf)
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

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

134 if (options.caches or options.l2cache):
135 fatal("You cannot use fastmem in combination with caches!")
136
137for i in xrange(np):
138 if options.fastmem:
139 test_sys.cpu[i].fastmem = True
140 if options.checker:
141 test_sys.cpu[i].addCheckerCpu()
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

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

134 if (options.caches or options.l2cache):
135 fatal("You cannot use fastmem in combination with caches!")
136
137for i in xrange(np):
138 if options.fastmem:
139 test_sys.cpu[i].fastmem = True
140 if options.checker:
141 test_sys.cpu[i].addCheckerCpu()
142 test_sys.cpu[i].createThreads()
142
143CacheConfig.config_cache(options, test_sys)
144
145if len(bm) == 2:
146 if buildEnv['TARGET_ISA'] == 'alpha':
147 drive_sys = makeLinuxAlphaSystem(drive_mem_mode, bm[1])
148 elif buildEnv['TARGET_ISA'] == 'mips':
149 drive_sys = makeLinuxMipsSystem(drive_mem_mode, bm[1])
150 elif buildEnv['TARGET_ISA'] == 'sparc':
151 drive_sys = makeSparcSystem(drive_mem_mode, bm[1])
152 elif buildEnv['TARGET_ISA'] == 'x86':
153 drive_sys = makeX86System(drive_mem_mode, np, bm[1])
154 elif buildEnv['TARGET_ISA'] == 'arm':
155 drive_sys = makeArmSystem(drive_mem_mode, options.machine_type, bm[1])
156
157 drive_sys.cpu = DriveCPUClass(cpu_id=0)
143
144CacheConfig.config_cache(options, test_sys)
145
146if len(bm) == 2:
147 if buildEnv['TARGET_ISA'] == 'alpha':
148 drive_sys = makeLinuxAlphaSystem(drive_mem_mode, bm[1])
149 elif buildEnv['TARGET_ISA'] == 'mips':
150 drive_sys = makeLinuxMipsSystem(drive_mem_mode, bm[1])
151 elif buildEnv['TARGET_ISA'] == 'sparc':
152 drive_sys = makeSparcSystem(drive_mem_mode, bm[1])
153 elif buildEnv['TARGET_ISA'] == 'x86':
154 drive_sys = makeX86System(drive_mem_mode, np, bm[1])
155 elif buildEnv['TARGET_ISA'] == 'arm':
156 drive_sys = makeArmSystem(drive_mem_mode, options.machine_type, bm[1])
157
158 drive_sys.cpu = DriveCPUClass(cpu_id=0)
159 drive_sys.cpu.createThreads()
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])

--- 19 unchanged lines hidden ---
160 drive_sys.cpu.createInterruptController()
161 drive_sys.cpu.connectAllPorts(drive_sys.membus)
162 if options.fastmem:
163 drive_sys.cpu.fastmem = True
164 if options.kernel is not None:
165 drive_sys.kernel = binary(options.kernel)
166 drive_sys.iobridge = Bridge(delay='50ns',
167 ranges = [drive_sys.physmem.range])

--- 19 unchanged lines hidden ---