hw/intc/arm_gic: Drop running_irq and last_active arrays
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 8 Sep 2015 16:38:42 +0000 (17:38 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 8 Sep 2015 16:38:42 +0000 (17:38 +0100)
commit72889c8a809f4c65796b98d5af6a18c92510ed86
tree65fac3a139f72a2a9c52a7998bf98e436e25059a
parent51fd06e0eee8257fdcc147200796e362cf2298ea
hw/intc/arm_gic: Drop running_irq and last_active arrays

The running_irq and last_active arrays represent state which
doesn't exist in a real hardware GIC. The only thing we use
them for is updating the running priority when an interrupt
is completed, but in fact we can use the active-priority
registers to do this. The running priority is always the
priority corresponding to the lowest set bit in the active
priority registers, because only one interrupt at any
particular priority can be active at once.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 1438089748-5528-5-git-send-email-peter.maydell@linaro.org
hw/intc/arm_gic.c
hw/intc/arm_gic_common.c
include/hw/intc/arm_gic_common.h