mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 09:13:55 -06:00
hw/intc/arm_gicv3: Set GICR_CTLR.CES if LPIs are supported
The GICR_CTLR.CES bit is a read-only bit which is set to 1 to indicate that the GICR_CTLR.EnableLPIs bit can be written to 0 to disable LPIs (as opposed to allowing LPIs to be enabled but not subsequently disabled). Our implementation permits this, so advertise it by setting CES to 1. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 20220122182444.724087-10-peter.maydell@linaro.org
This commit is contained in:
parent
d7d19c0aeb
commit
1611956bce
2 changed files with 5 additions and 0 deletions
|
@ -429,6 +429,10 @@ static void arm_gicv3_common_reset(DeviceState *dev)
|
|||
|
||||
cs->level = 0;
|
||||
cs->gicr_ctlr = 0;
|
||||
if (s->lpi_enable) {
|
||||
/* Our implementation supports clearing GICR_CTLR.EnableLPIs */
|
||||
cs->gicr_ctlr |= GICR_CTLR_CES;
|
||||
}
|
||||
cs->gicr_statusr[GICV3_S] = 0;
|
||||
cs->gicr_statusr[GICV3_NS] = 0;
|
||||
cs->gicr_waker = GICR_WAKER_ProcessorSleep | GICR_WAKER_ChildrenAsleep;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue