summaryrefslogtreecommitdiff
path: root/src/dev/arm/base_gic.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/dev/arm/base_gic.hh')
-rw-r--r--src/dev/arm/base_gic.hh8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/dev/arm/base_gic.hh b/src/dev/arm/base_gic.hh
index f18539fe8..7c0cc0edc 100644
--- a/src/dev/arm/base_gic.hh
+++ b/src/dev/arm/base_gic.hh
@@ -46,6 +46,7 @@
#include <unordered_map>
+#include "arch/arm/system.hh"
#include "dev/io_device.hh"
class Platform;
@@ -67,6 +68,7 @@ class BaseGic : public PioDevice
BaseGic(const Params *p);
virtual ~BaseGic();
+ void init() override;
const Params * params() const;
@@ -99,6 +101,12 @@ class BaseGic : public PioDevice
*/
virtual void clearInt(uint32_t num) = 0;
+ ArmSystem *
+ getSystem() const
+ {
+ return (ArmSystem *) sys;
+ }
+
protected:
/** Platform this GIC belongs to. */
Platform *platform;