dev-arm: Allow GICv3 to be externally(publicly) updated
Change-Id: Ifa7b745ea11e74c17024c22ae993b6103eecb744 Signed-off-by: Giacomo Travaglini <giacomo.travaglini@arm.com> Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/66271 Reviewed-by: Jason Lowe-Power <power.jg@gmail.com> Maintainer: Jason Lowe-Power <power.jg@gmail.com> Tested-by: kokoro <noreply+kokoro@google.com>
This commit is contained in:
@@ -286,6 +286,12 @@ Gicv3::postInt(uint32_t cpu, ArmISA::InterruptTypes int_type)
|
||||
ArmSystem::callClearStandByWfi(tc);
|
||||
}
|
||||
|
||||
void
|
||||
Gicv3::update()
|
||||
{
|
||||
distributor->update();
|
||||
}
|
||||
|
||||
bool
|
||||
Gicv3::supportsVersion(GicVersion version)
|
||||
{
|
||||
|
||||
@@ -206,6 +206,8 @@ class Gicv3 : public BaseGic, public Gicv3Registers
|
||||
|
||||
void postInt(uint32_t cpu, ArmISA::InterruptTypes int_type);
|
||||
|
||||
void update();
|
||||
|
||||
protected: // GIC state transfer
|
||||
void copyGicState(Gicv3Registers* from, Gicv3Registers* to);
|
||||
|
||||
|
||||
@@ -257,7 +257,6 @@ class Gicv3Distributor : public Serializable
|
||||
|
||||
void serialize(CheckpointOut & cp) const override;
|
||||
void unserialize(CheckpointIn & cp) override;
|
||||
void update();
|
||||
Gicv3CPUInterface* route(uint32_t int_id);
|
||||
|
||||
public:
|
||||
@@ -274,6 +273,7 @@ class Gicv3Distributor : public Serializable
|
||||
bool is_secure_access);
|
||||
|
||||
void copy(Gicv3Registers *from, Gicv3Registers *to);
|
||||
void update();
|
||||
};
|
||||
|
||||
} // namespace gem5
|
||||
|
||||
Reference in New Issue
Block a user