From 81be8b9d157a038c1d8f3ebf7e2ec8eba0eac935 Mon Sep 17 00:00:00 2001 From: Andreas Sandberg Date: Thu, 25 Oct 2012 14:05:24 +0100 Subject: arm: Create a GIC base class and make the PL390 derive from it This patch moves the GIC interface to a separate base class and makes all interrupt devices use that base class instead of a pointer to the PL390 implementation. This allows us to have multiple GIC implementations. Future implementations will allow in-kernel GIC implementations when using hardware virtualization. --HG-- rename : src/dev/arm/gic.cc => src/dev/arm/gic_pl390.cc rename : src/dev/arm/gic.hh => src/dev/arm/gic_pl390.hh --- src/dev/arm/timer_cpulocal.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/dev/arm/timer_cpulocal.hh') diff --git a/src/dev/arm/timer_cpulocal.hh b/src/dev/arm/timer_cpulocal.hh index 9b60db4ec..086dc1c63 100644 --- a/src/dev/arm/timer_cpulocal.hh +++ b/src/dev/arm/timer_cpulocal.hh @@ -50,7 +50,7 @@ * Technical Reference Manual rev r2p2 (ARM DDI 0407F) */ -class Gic; +class BaseGic; class CpuLocalTimer : public BasicPioDevice { @@ -157,7 +157,7 @@ class CpuLocalTimer : public BasicPioDevice static const int CPU_MAX = 8; /** Pointer to the GIC for causing an interrupt */ - Gic *gic; + BaseGic *gic; /** Timers that do the actual work */ Timer localTimer[CPU_MAX]; -- cgit v1.2.3