BaseCPU.py (9518:8faae62af8c3) BaseCPU.py (9544:1a075d9bc1bc)
1# Copyright (c) 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

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

216 _uncached_master_ports += ["interrupts.int_master"]
217
218 def createInterruptController(self):
219 if buildEnv['TARGET_ISA'] == 'sparc':
220 self.interrupts = SparcInterrupts()
221 elif buildEnv['TARGET_ISA'] == 'alpha':
222 self.interrupts = AlphaInterrupts()
223 elif buildEnv['TARGET_ISA'] == 'x86':
1# Copyright (c) 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

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

216 _uncached_master_ports += ["interrupts.int_master"]
217
218 def createInterruptController(self):
219 if buildEnv['TARGET_ISA'] == 'sparc':
220 self.interrupts = SparcInterrupts()
221 elif buildEnv['TARGET_ISA'] == 'alpha':
222 self.interrupts = AlphaInterrupts()
223 elif buildEnv['TARGET_ISA'] == 'x86':
224 _localApic = X86LocalApic(pio_addr=0x2000000000000000)
225 self.interrupts = _localApic
224 self.interrupts = X86LocalApic(clock = Parent.clock * 16,
225 pio_addr=0x2000000000000000)
226 _localApic = self.interrupts
226 elif buildEnv['TARGET_ISA'] == 'mips':
227 self.interrupts = MipsInterrupts()
228 elif buildEnv['TARGET_ISA'] == 'arm':
229 self.interrupts = ArmInterrupts()
230 elif buildEnv['TARGET_ISA'] == 'power':
231 self.interrupts = PowerInterrupts()
232 else:
233 print "Don't know what Interrupt Controller to use for ISA %s" % \

--- 60 unchanged lines hidden ---
227 elif buildEnv['TARGET_ISA'] == 'mips':
228 self.interrupts = MipsInterrupts()
229 elif buildEnv['TARGET_ISA'] == 'arm':
230 self.interrupts = ArmInterrupts()
231 elif buildEnv['TARGET_ISA'] == 'power':
232 self.interrupts = PowerInterrupts()
233 else:
234 print "Don't know what Interrupt Controller to use for ISA %s" % \

--- 60 unchanged lines hidden ---