4.5.7. Rectified inputs, clear interrupt-pending bits A read of an in_clrip register returns the rectified input values of the corresponding interrupt sources. A read of an in_clrip register doesn't should be an active interrupt source. A write of an in_clrip register should be an active interrupt source.
Signed-off-by: Yang Jialong <[email protected]> --- hw/intc/riscv_aplic.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/hw/intc/riscv_aplic.c b/hw/intc/riscv_aplic.c index a1d9fa5085..2583d6d305 100644 --- a/hw/intc/riscv_aplic.c +++ b/hw/intc/riscv_aplic.c @@ -204,9 +204,6 @@ static bool riscv_aplic_irq_rectified_val(RISCVAPLICState *aplic, } sm = sourcecfg & APLIC_SOURCECFG_SM_MASK; - if (sm == APLIC_SOURCECFG_SM_INACTIVE) { - return false; - } raw_input = (aplic->state[irq] & APLIC_ISTATE_INPUT) ? 1 : 0; irq_inverted = (sm == APLIC_SOURCECFG_SM_LEVEL_LOW || -- 2.34.1
