diff options
author | Giacomo Travaglini <giacomo.travaglini@arm.com> | 2019-04-25 10:45:58 +0100 |
---|---|---|
committer | Giacomo Travaglini <giacomo.travaglini@arm.com> | 2019-05-02 12:44:13 +0000 |
commit | 7ad6c8031abd4d0d2d0bb555319399b2b180d073 (patch) | |
tree | d78f026e42fe9fd855e78956c356a27ccbc39c9b /src | |
parent | a4f30167f676fa45192fc3322c96e24b83f5e96f (diff) | |
download | gem5-7ad6c8031abd4d0d2d0bb555319399b2b180d073.tar.xz |
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 <giacomo.travaglini@arm.com>
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/18594
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
Tested-by: kokoro <noreply+kokoro@google.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/dev/arm/gic_v3_redistributor.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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 && |