From 7ad6c8031abd4d0d2d0bb555319399b2b180d073 Mon Sep 17 00:00:00 2001 From: Giacomo Travaglini Date: Thu, 25 Apr 2019 10:45:58 +0100 Subject: [PATCH] dev-arm: Fix GICv3 LPIs priority value Priority bits in the LPI configuration table entry are only the MSBits ([7:2]) and need to be shifted in order to get the real LPI priority value. Change-Id: Id04dd4fa9113a32712c73a7094df498de3c0d2b5 Signed-off-by: Giacomo Travaglini Reviewed-by: Andreas Sandberg Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/18594 Maintainer: Andreas Sandberg Tested-by: kokoro --- src/dev/arm/gic_v3_redistributor.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dev/arm/gic_v3_redistributor.cc b/src/dev/arm/gic_v3_redistributor.cc index be28d3a2b..e22d830ae 100644 --- a/src/dev/arm/gic_v3_redistributor.cc +++ b/src/dev/arm/gic_v3_redistributor.cc @@ -839,7 +839,7 @@ Gicv3Redistributor::update() bool group_enabled = distributor->groupEnabled(lpi_group); if (lpi_is_pending && lpi_is_enable && group_enabled) { - uint8_t lpi_priority =config_entry.priority; + uint8_t lpi_priority = config_entry.priority << 2; if ((lpi_priority < cpuInterface->hppi.prio) || (lpi_priority == cpuInterface->hppi.prio && -- 2.30.2