RealView.py (12272:bcc67ee98e6d) | RealView.py (12467:087fab1b0e54) |
---|---|
1# Copyright (c) 2009-2017 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 --- 40 unchanged lines hidden (view full) --- 49from Ethernet import NSGigE, IGbE_igb, IGbE_e1000 50from Ide import * 51from Platform import Platform 52from Terminal import Terminal 53from Uart import Uart 54from SimpleMemory import SimpleMemory 55from Gic import * 56from EnergyCtrl import EnergyCtrl | 1# Copyright (c) 2009-2017 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 --- 40 unchanged lines hidden (view full) --- 49from Ethernet import NSGigE, IGbE_igb, IGbE_e1000 50from Ide import * 51from Platform import Platform 52from Terminal import Terminal 53from Uart import Uart 54from SimpleMemory import SimpleMemory 55from Gic import * 56from EnergyCtrl import EnergyCtrl |
57from ClockedObject import ClockedObject |
|
57from ClockDomain import SrcClockDomain 58from SubSystem import SubSystem 59from Graphics import ImageFormat 60 61# Platforms with KVM support should generally use in-kernel GIC 62# emulation. Use a GIC model that automatically switches between 63# gem5's GIC model and KVM's GIC model if KVM is available. 64try: --- 177 unchanged lines hidden (view full) --- 242 243class CpuLocalTimer(BasicPioDevice): 244 type = 'CpuLocalTimer' 245 cxx_header = "dev/arm/timer_cpulocal.hh" 246 gic = Param.BaseGic(Parent.any, "Gic to use for interrupting") 247 int_num_timer = Param.UInt32("Interrrupt number used per-cpu to GIC") 248 int_num_watchdog = Param.UInt32("Interrupt number for per-cpu watchdog to GIC") 249 | 58from ClockDomain import SrcClockDomain 59from SubSystem import SubSystem 60from Graphics import ImageFormat 61 62# Platforms with KVM support should generally use in-kernel GIC 63# emulation. Use a GIC model that automatically switches between 64# gem5's GIC model and KVM's GIC model if KVM is available. 65try: --- 177 unchanged lines hidden (view full) --- 243 244class CpuLocalTimer(BasicPioDevice): 245 type = 'CpuLocalTimer' 246 cxx_header = "dev/arm/timer_cpulocal.hh" 247 gic = Param.BaseGic(Parent.any, "Gic to use for interrupting") 248 int_num_timer = Param.UInt32("Interrrupt number used per-cpu to GIC") 249 int_num_watchdog = Param.UInt32("Interrupt number for per-cpu watchdog to GIC") 250 |
250class GenericTimer(SimObject): | 251class GenericTimer(ClockedObject): |
251 type = 'GenericTimer' 252 cxx_header = "dev/arm/generic_timer.hh" 253 system = Param.ArmSystem(Parent.any, "system") 254 gic = Param.BaseGic(Parent.any, "GIC to use for interrupting") 255 # @todo: for now only two timers per CPU is supported, which is the 256 # normal behaviour when security extensions are disabled. 257 int_phys = Param.UInt32("Physical timer interrupt number") 258 int_virt = Param.UInt32("Virtual timer interrupt number") --- 683 unchanged lines hidden --- | 252 type = 'GenericTimer' 253 cxx_header = "dev/arm/generic_timer.hh" 254 system = Param.ArmSystem(Parent.any, "system") 255 gic = Param.BaseGic(Parent.any, "GIC to use for interrupting") 256 # @todo: for now only two timers per CPU is supported, which is the 257 # normal behaviour when security extensions are disabled. 258 int_phys = Param.UInt32("Physical timer interrupt number") 259 int_virt = Param.UInt32("Virtual timer interrupt number") --- 683 unchanged lines hidden --- |