hw/mips_gic: Update pin state on mask changes
authorPaul Burton <paul.burton@imgtec.com>
Thu, 8 Sep 2016 14:51:53 +0000 (15:51 +0100)
committerYongbok Kim <yongbok.kim@imgtec.com>
Tue, 21 Feb 2017 22:24:58 +0000 (22:24 +0000)
commit2e2a1b4648114ebbb371c10f31c66d10bcd40051
tree0625e4b740604fdfd07146f601adf504e50c1e9a
parenteb90ab9437ebb2dea77ebdf6c96488841ddbdd85
hw/mips_gic: Update pin state on mask changes

If the GIC interrupt mask is changed by a write to the smask (set mask)
or rmask (reset mask) registers, we need to re-evaluate the state of the
pins/IRQs fed to the CPU. Without doing so we risk leaving a pin high
despite the interrupt that led to that state being masked, or losing
interrupts if an already pending interrupt is unmasked.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Reviewed-by: Leon Alrae <leon.alrae@imgtec.com>
Signed-off-by: Yongbok Kim <yongbok.kim@imgtec.com>
hw/intc/mips_gic.c