arm_mptimer: Respect IT bit state
The timer should fire the interrupt only if the IT (interrupt enable) bit state of the control register is enabled. Signed-off-by: Dmitry Osipenko <digetx@gmail.com> Reviewed-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
8a52340cba
commit
257621a956
@ -38,7 +38,7 @@ static inline int get_current_cpu(ARMMPTimerState *s)
|
||||
|
||||
static inline void timerblock_update_irq(TimerBlock *tb)
|
||||
{
|
||||
qemu_set_irq(tb->irq, tb->status);
|
||||
qemu_set_irq(tb->irq, tb->status && (tb->control & 4));
|
||||
}
|
||||
|
||||
/* Return conversion factor from mpcore timer ticks to qemu timer ticks. */
|
||||
|
Loading…
Reference in New Issue
Block a user