diff options
author | Andreas Sandberg <Andreas.Sandberg@ARM.com> | 2012-10-25 14:05:24 +0100 |
---|---|---|
committer | Andreas Sandberg <Andreas.Sandberg@ARM.com> | 2012-10-25 14:05:24 +0100 |
commit | 81be8b9d157a038c1d8f3ebf7e2ec8eba0eac935 (patch) | |
tree | a10132c3d1938bab3cd79626aead978ca1760d20 /src/dev/arm/realview.hh | |
parent | b904bd5437ead0dfc2c4c0977f3d29d63299c601 (diff) | |
download | gem5-81be8b9d157a038c1d8f3ebf7e2ec8eba0eac935.tar.xz |
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
Diffstat (limited to 'src/dev/arm/realview.hh')
-rw-r--r-- | src/dev/arm/realview.hh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/dev/arm/realview.hh b/src/dev/arm/realview.hh index f38aa69fc..38fa040d5 100644 --- a/src/dev/arm/realview.hh +++ b/src/dev/arm/realview.hh @@ -52,7 +52,7 @@ #include "dev/platform.hh" #include "params/RealView.hh" -class Gic; +class BaseGic; class IdeController; class System; @@ -62,7 +62,7 @@ class RealView : public Platform /** Pointer to the system */ System *system; - Gic *gic; + BaseGic *gic; public: typedef RealViewParams Params; @@ -80,7 +80,7 @@ class RealView : public Platform RealView(const Params *p); /** Give platform a pointer to interrupt controller */ - void setGic(Gic *_gic) { gic = _gic; } + void setGic(BaseGic *_gic) { gic = _gic; } /** * Cause the cpu to post a serial interrupt to the CPU. |