RealView.py (13504:5a01198080fa) | RealView.py (13505:e699fce12780) |
---|---|
1# Copyright (c) 2009-2018 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 --- 60 unchanged lines hidden (view full) --- 69# emulation. Use a GIC model that automatically switches between 70# gem5's GIC model and KVM's GIC model if KVM is available. 71try: 72 from KvmGic import MuxingKvmGic 73 kvm_gicv2_class = MuxingKvmGic 74except ImportError: 75 # KVM support wasn't compiled into gem5. Fallback to a 76 # software-only GIC. | 1# Copyright (c) 2009-2018 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 --- 60 unchanged lines hidden (view full) --- 69# emulation. Use a GIC model that automatically switches between 70# gem5's GIC model and KVM's GIC model if KVM is available. 71try: 72 from KvmGic import MuxingKvmGic 73 kvm_gicv2_class = MuxingKvmGic 74except ImportError: 75 # KVM support wasn't compiled into gem5. Fallback to a 76 # software-only GIC. |
77 kvm_gicv2_class = GicV2 | 77 kvm_gicv2_class = Gic400 |
78 pass 79 80class AmbaPioDevice(BasicPioDevice): 81 type = 'AmbaPioDevice' 82 abstract = True 83 cxx_header = "dev/arm/amba_device.hh" 84 amba_id = Param.UInt32("ID of AMBA device for kernel detection") 85 --- 483 unchanged lines hidden (view full) --- 569# Reference for memory map and interrupt number 570# RealView Platform Baseboard Explore for Cortex-A9 User Guide(ARM DUI 0440A) 571# Chapter 4: Programmer's Reference 572class RealViewPBX(RealView): 573 uart = Pl011(pio_addr=0x10009000, int_num=44) 574 realview_io = RealViewCtrl(pio_addr=0x10000000) 575 mcc = VExpressMCC() 576 dcc = CoreTile2A15DCC() | 78 pass 79 80class AmbaPioDevice(BasicPioDevice): 81 type = 'AmbaPioDevice' 82 abstract = True 83 cxx_header = "dev/arm/amba_device.hh" 84 amba_id = Param.UInt32("ID of AMBA device for kernel detection") 85 --- 483 unchanged lines hidden (view full) --- 569# Reference for memory map and interrupt number 570# RealView Platform Baseboard Explore for Cortex-A9 User Guide(ARM DUI 0440A) 571# Chapter 4: Programmer's Reference 572class RealViewPBX(RealView): 573 uart = Pl011(pio_addr=0x10009000, int_num=44) 574 realview_io = RealViewCtrl(pio_addr=0x10000000) 575 mcc = VExpressMCC() 576 dcc = CoreTile2A15DCC() |
577 gic = GicV2(cpu_addr=0x1f000100, dist_addr=0x1f001000, cpu_size=0x100) | 577 gic = Gic400(cpu_addr=0x1f000100, dist_addr=0x1f001000, cpu_size=0x100) |
578 pci_host = GenericPciHost( 579 conf_base=0x30000000, conf_size='256MB', conf_device_bits=16, 580 pci_pio_base=0) 581 timer0 = Sp804(int_num0=36, int_num1=36, pio_addr=0x10011000) 582 timer1 = Sp804(int_num0=37, int_num1=37, pio_addr=0x10012000) 583 global_timer = A9GlobalTimer(int_num=27, pio_addr=0x1f000200) 584 local_cpu_timer = CpuLocalTimer(int_timer=ArmPPI(num=29), 585 int_watchdog=ArmPPI(num=30), --- 130 unchanged lines hidden (view full) --- 716 # Platform control device (off-chip) 717 realview_io = RealViewCtrl(proc_id0=0x14000000, proc_id1=0x14000000, 718 idreg=0x02250000, pio_addr=0x1C010000) 719 720 mcc = VExpressMCC() 721 dcc = CoreTile2A15DCC() 722 723 ### On-chip devices ### | 578 pci_host = GenericPciHost( 579 conf_base=0x30000000, conf_size='256MB', conf_device_bits=16, 580 pci_pio_base=0) 581 timer0 = Sp804(int_num0=36, int_num1=36, pio_addr=0x10011000) 582 timer1 = Sp804(int_num0=37, int_num1=37, pio_addr=0x10012000) 583 global_timer = A9GlobalTimer(int_num=27, pio_addr=0x1f000200) 584 local_cpu_timer = CpuLocalTimer(int_timer=ArmPPI(num=29), 585 int_watchdog=ArmPPI(num=30), --- 130 unchanged lines hidden (view full) --- 716 # Platform control device (off-chip) 717 realview_io = RealViewCtrl(proc_id0=0x14000000, proc_id1=0x14000000, 718 idreg=0x02250000, pio_addr=0x1C010000) 719 720 mcc = VExpressMCC() 721 dcc = CoreTile2A15DCC() 722 723 ### On-chip devices ### |
724 gic = GicV2(dist_addr=0x2C001000, cpu_addr=0x2C002000) | 724 gic = Gic400(dist_addr=0x2C001000, cpu_addr=0x2C002000) |
725 vgic = VGic(vcpu_addr=0x2c006000, hv_addr=0x2c004000, ppint=25) 726 727 local_cpu_timer = CpuLocalTimer(int_timer=ArmPPI(num=29), 728 int_watchdog=ArmPPI(num=30), 729 pio_addr=0x2C080000) 730 731 hdlcd = HDLcd(pxl_clk=dcc.osc_pxl, 732 pio_addr=0x2b000000, int_num=117, --- 82 unchanged lines hidden (view full) --- 815 # Attach any PCI devices that are supported 816 def attachPciDevices(self): 817 self.ethernet = IGbE_e1000(pci_bus=0, pci_dev=0, pci_func=0, 818 InterruptLine=1, InterruptPin=1) 819 self.ide = IdeController(disks = [], pci_bus=0, pci_dev=1, pci_func=0, 820 InterruptLine=2, InterruptPin=2) 821 822 def enableMSIX(self): | 725 vgic = VGic(vcpu_addr=0x2c006000, hv_addr=0x2c004000, ppint=25) 726 727 local_cpu_timer = CpuLocalTimer(int_timer=ArmPPI(num=29), 728 int_watchdog=ArmPPI(num=30), 729 pio_addr=0x2C080000) 730 731 hdlcd = HDLcd(pxl_clk=dcc.osc_pxl, 732 pio_addr=0x2b000000, int_num=117, --- 82 unchanged lines hidden (view full) --- 815 # Attach any PCI devices that are supported 816 def attachPciDevices(self): 817 self.ethernet = IGbE_e1000(pci_bus=0, pci_dev=0, pci_func=0, 818 InterruptLine=1, InterruptPin=1) 819 self.ide = IdeController(disks = [], pci_bus=0, pci_dev=1, pci_func=0, 820 InterruptLine=2, InterruptPin=2) 821 822 def enableMSIX(self): |
823 self.gic = GicV2(dist_addr=0x2C001000, cpu_addr=0x2C002000, it_lines=512) | 823 self.gic = Gic400(dist_addr=0x2C001000, cpu_addr=0x2C002000, 824 it_lines=512) |
824 self.gicv2m = Gicv2m() 825 self.gicv2m.frames = [Gicv2mFrame(spi_base=256, spi_len=64, addr=0x2C1C0000)] 826 827 def setupBootLoader(self, mem_bus, cur_sys, loc): 828 cur_sys.bootmem = SimpleMemory(range = AddrRange('64MB'), 829 conf_table_reported = False) 830 if mem_bus is not None: 831 cur_sys.bootmem.port = mem_bus.master --- 240 unchanged lines hidden --- | 825 self.gicv2m = Gicv2m() 826 self.gicv2m.frames = [Gicv2mFrame(spi_base=256, spi_len=64, addr=0x2C1C0000)] 827 828 def setupBootLoader(self, mem_bus, cur_sys, loc): 829 cur_sys.bootmem = SimpleMemory(range = AddrRange('64MB'), 830 conf_table_reported = False) 831 if mem_bus is not None: 832 cur_sys.bootmem.port = mem_bus.master --- 240 unchanged lines hidden --- |