diff options
author | Jairo Balart <jairo.balart@metempsy.com> | 2018-10-11 16:05:12 +0200 |
---|---|---|
committer | Giacomo Travaglini <giacomo.travaglini@arm.com> | 2019-01-10 16:29:30 +0000 |
commit | 93c7fa573116aade8e8d6b0646e85874e6003567 (patch) | |
tree | 6e49e8be33c3514553017e055fc32a627cb68698 /src/dev/arm/base_gic.hh | |
parent | 7d5696d1a9f0776f51ec20e81a413fcdcc748c4e (diff) | |
download | gem5-93c7fa573116aade8e8d6b0646e85874e6003567.tar.xz |
dev-arm: Add a GICv3 model
Change-Id: Ib0067fc743f84ff7be9f12d2fc33ddf63736bdd1
Reviewed-on: https://gem5-review.googlesource.com/c/13436
Reviewed-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Maintainer: Giacomo Travaglini <giacomo.travaglini@arm.com>
Diffstat (limited to 'src/dev/arm/base_gic.hh')
-rw-r--r-- | src/dev/arm/base_gic.hh | 8 |
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; |