mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
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:
committed by
Peter Maydell
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. */
|
||||
|
||||
Reference in New Issue
Block a user