Giacomo Travaglini has uploaded this change for review. (
https://gem5-review.googlesource.com/c/public/gem5/+/66271?usp=email )
Change subject: dev-arm: Allow GICv3 to be externally(publicly) updated
......................................................................
dev-arm: Allow GICv3 to be externally(publicly) updated
Change-Id: Ifa7b745ea11e74c17024c22ae993b6103eecb744
Signed-off-by: Giacomo Travaglini <giacomo.travagl...@arm.com>
---
M src/dev/arm/gic_v3.cc
M src/dev/arm/gic_v3.hh
M src/dev/arm/gic_v3_distributor.hh
3 files changed, 19 insertions(+), 1 deletion(-)
diff --git a/src/dev/arm/gic_v3.cc b/src/dev/arm/gic_v3.cc
index dde3818..1570b4b 100644
--- a/src/dev/arm/gic_v3.cc
+++ b/src/dev/arm/gic_v3.cc
@@ -286,6 +286,12 @@
ArmSystem::callClearStandByWfi(tc);
}
+void
+Gicv3::update()
+{
+ distributor->update();
+}
+
bool
Gicv3::supportsVersion(GicVersion version)
{
diff --git a/src/dev/arm/gic_v3.hh b/src/dev/arm/gic_v3.hh
index 120b039..2ea6a98 100644
--- a/src/dev/arm/gic_v3.hh
+++ b/src/dev/arm/gic_v3.hh
@@ -206,6 +206,8 @@
void postInt(uint32_t cpu, ArmISA::InterruptTypes int_type);
+ void update();
+
protected: // GIC state transfer
void copyGicState(Gicv3Registers* from, Gicv3Registers* to);
diff --git a/src/dev/arm/gic_v3_distributor.hh
b/src/dev/arm/gic_v3_distributor.hh
index 9960e91..f80800f 100644
--- a/src/dev/arm/gic_v3_distributor.hh
+++ b/src/dev/arm/gic_v3_distributor.hh
@@ -257,7 +257,6 @@
void serialize(CheckpointOut & cp) const override;
void unserialize(CheckpointIn & cp) override;
- void update();
Gicv3CPUInterface* route(uint32_t int_id);
public:
@@ -274,6 +273,7 @@
bool is_secure_access);
void copy(Gicv3Registers *from, Gicv3Registers *to);
+ void update();
};
} // namespace gem5
--
To view, visit
https://gem5-review.googlesource.com/c/public/gem5/+/66271?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gem5-review.googlesource.com/settings
Gerrit-Project: public/gem5
Gerrit-Branch: develop
Gerrit-Change-Id: Ifa7b745ea11e74c17024c22ae993b6103eecb744
Gerrit-Change-Number: 66271
Gerrit-PatchSet: 1
Gerrit-Owner: Giacomo Travaglini <giacomo.travagl...@arm.com>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list -- gem5-dev@gem5.org
To unsubscribe send an email to gem5-dev-le...@gem5.org