hw/char: sifive_uart: Update IRQ when rxctrl is written
When rxctl is updated, we also need to check whether the IRQ should be raised, as the user may activate the Rx channel or change the Rx FIFO watermark level. Signed-off-by: Frank Chang <frank.chang@sifive.com> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Message-ID: <20260312033201.1619554-4-frank.chang@sifive.com> Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Frank Chang committed
Mar 12, 2026 at 11:32 UTC
558f14b26f427938c380fb9118ae08a87db462d5
1 file changed
+1
hw/char/sifive_uart.c
+1
@@ -216,6 +216,7 @@ sifive_uart_write(void *opaque, hwaddr addr,
216
return;
217
case SIFIVE_UART_RXCTRL:
218
s->rxctrl = val64;
219
+ sifive_uart_update_irq(s);
220
return;
221
case SIFIVE_UART_DIV:
222
s->div = val64;