From a04da61ce1b8fa131da08894e1beaf7b81771f8e Mon Sep 17 00:00:00 2001 From: Giacomo Travaglini Date: Wed, 4 Sep 2019 15:44:33 +0100 Subject: [PATCH] dev-arm: Reset HPPI when clearing an LPI Change-Id: I2a69e6cef69aa48d7c265d59915b859e5eac2bcc Signed-off-by: Giacomo Travaglini Reviewed-by: Andreas Sandberg Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/20638 Tested-by: kokoro Maintainer: Andreas Sandberg --- src/dev/arm/gic_v3_redistributor.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/dev/arm/gic_v3_redistributor.cc b/src/dev/arm/gic_v3_redistributor.cc index 8b6233c22..11a1f9d3e 100644 --- a/src/dev/arm/gic_v3_redistributor.cc +++ b/src/dev/arm/gic_v3_redistributor.cc @@ -928,6 +928,9 @@ Gicv3Redistributor::setClrLPI(uint64_t data, bool set) } lpi_pending_entry &= ~(1 << (lpi_pending_entry_bit_position)); + + // Remove the pending state from the cpu interface + cpuInterface->resetHppi(lpi_id); } writeEntryLPI(lpi_id, lpi_pending_entry); -- 2.30.2