Deleted Added
sdiff udiff text old ( 11415:d6c8016a9a03 ) new ( 11723:0596db108c53 )
full compact
1# Copyright (c) 2012-2013, 2015 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

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

80 from ArmInterrupts import ArmInterrupts
81 from ArmISA import ArmISA
82 isa_class = ArmISA
83elif buildEnv['TARGET_ISA'] == 'power':
84 from PowerTLB import PowerTLB
85 from PowerInterrupts import PowerInterrupts
86 from PowerISA import PowerISA
87 isa_class = PowerISA
88
89class BaseCPU(MemObject):
90 type = 'BaseCPU'
91 abstract = True
92 cxx_header = "cpu/base.hh"
93
94 @classmethod
95 def export_methods(cls, code):

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

180 isa = VectorParam.ArmISA([ isa_class() ], "ISA instance")
181 elif buildEnv['TARGET_ISA'] == 'power':
182 UnifiedTLB = Param.Bool(True, "Is this a Unified TLB?")
183 dtb = Param.PowerTLB(PowerTLB(), "Data TLB")
184 itb = Param.PowerTLB(PowerTLB(), "Instruction TLB")
185 interrupts = VectorParam.PowerInterrupts(
186 [], "Interrupt Controller")
187 isa = VectorParam.PowerISA([ isa_class() ], "ISA instance")
188 else:
189 print "Don't know what TLB to use for ISA %s" % \
190 buildEnv['TARGET_ISA']
191 sys.exit(1)
192
193 max_insts_all_threads = Param.Counter(0,
194 "terminate when all threads have reached this inst count")
195 max_insts_any_thread = Param.Counter(0,

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

237 for i in xrange(self.numThreads)]
238 _localApic = self.interrupts
239 elif buildEnv['TARGET_ISA'] == 'mips':
240 self.interrupts = [MipsInterrupts() for i in xrange(self.numThreads)]
241 elif buildEnv['TARGET_ISA'] == 'arm':
242 self.interrupts = [ArmInterrupts() for i in xrange(self.numThreads)]
243 elif buildEnv['TARGET_ISA'] == 'power':
244 self.interrupts = [PowerInterrupts() for i in xrange(self.numThreads)]
245 else:
246 print "Don't know what Interrupt Controller to use for ISA %s" % \
247 buildEnv['TARGET_ISA']
248 sys.exit(1)
249
250 def connectCachedPorts(self, bus):
251 for p in self._cached_ports:
252 exec('self.%s = bus.slave' % p)

--- 51 unchanged lines hidden ---