diff options
-rw-r--r-- | src/dev/arm/RealView.py | 3 | ||||
-rw-r--r-- | src/dev/arm/generic_timer.cc | 2 | ||||
-rw-r--r-- | src/dev/arm/generic_timer.hh | 2 |
3 files changed, 4 insertions, 3 deletions
diff --git a/src/dev/arm/RealView.py b/src/dev/arm/RealView.py index 699b7dfb7..cd7772f32 100644 --- a/src/dev/arm/RealView.py +++ b/src/dev/arm/RealView.py @@ -54,6 +54,7 @@ from Uart import Uart from SimpleMemory import SimpleMemory from Gic import * from EnergyCtrl import EnergyCtrl +from ClockedObject import ClockedObject from ClockDomain import SrcClockDomain from SubSystem import SubSystem from Graphics import ImageFormat @@ -247,7 +248,7 @@ class CpuLocalTimer(BasicPioDevice): int_num_timer = Param.UInt32("Interrrupt number used per-cpu to GIC") int_num_watchdog = Param.UInt32("Interrupt number for per-cpu watchdog to GIC") -class GenericTimer(SimObject): +class GenericTimer(ClockedObject): type = 'GenericTimer' cxx_header = "dev/arm/generic_timer.hh" system = Param.ArmSystem(Parent.any, "system") diff --git a/src/dev/arm/generic_timer.cc b/src/dev/arm/generic_timer.cc index f8433bd2d..73e4f9143 100644 --- a/src/dev/arm/generic_timer.cc +++ b/src/dev/arm/generic_timer.cc @@ -239,7 +239,7 @@ ArchTimer::Interrupt::clear() GenericTimer::GenericTimer(GenericTimerParams *p) - : SimObject(p), + : ClockedObject(p), system(*p->system), gic(p->gic), irqPhys(p->int_phys), diff --git a/src/dev/arm/generic_timer.hh b/src/dev/arm/generic_timer.hh index ccfb1277f..c9cfb7497 100644 --- a/src/dev/arm/generic_timer.hh +++ b/src/dev/arm/generic_timer.hh @@ -226,7 +226,7 @@ class ArchTimerKvm : public ArchTimer } }; -class GenericTimer : public SimObject +class GenericTimer : public ClockedObject { public: GenericTimer(GenericTimerParams *p); |