@samitouri / QOSamiQemu / commits / c75b41f21f

hw/timer: ibex_timer: Update IRQs after writing CTRL

When writing to rv_timer.CTRL after setting the compare values the timer doesn't fire as we don't update the interrupts. Ensure we update the interrupts after a write to the rv_timer.CTRL register. Resolves: https://gitlab.com/qemu-project/qemu/-/work_items/2796 Signed-off-by: Alistair Francis <alistair.francis@wdc.com> Reviewed-by: Chao Liu <chao.liu.zevorn@gmail.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Daniel Henrique Barboza <daniel.barboza@oss.qualcomm.com> Reviewed-by: Nutty Liu <nutty.liu@hotmail.com> Message-ID: <20260407043614.372871-5-alistair.francis@wdc.com> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>

Alistair Francis committed Apr 7, 2026 at 14:36 UTC c75b41f21f1f7c9266d80220a2fa70f499f64a87
1 file changed +1
hw/timer/ibex_timer.c
+1
@@ -193,6 +193,7 @@ static void ibex_timer_write(void *opaque, hwaddr addr,
193 break;
194 case R_CTRL:
195 s->timer_ctrl = val;
196 + ibex_timer_update_irqs(s);
197 break;
198 case R_CFG0:
199 qemu_log_mask(LOG_UNIMP, "Changing prescale or step not supported");