Commit 558f14b26f for qemu.org
commit 558f14b26f427938c380fb9118ae08a87db462d5
Author: Frank Chang <frank.chang@sifive.com>
Date: Thu Mar 12 11:32:00 2026 +0800
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>
diff --git a/hw/char/sifive_uart.c b/hw/char/sifive_uart.c
index ae71a15a2a..f255cca960 100644
--- a/hw/char/sifive_uart.c
+++ b/hw/char/sifive_uart.c
@@ -216,6 +216,7 @@ sifive_uart_write(void *opaque, hwaddr addr,
return;
case SIFIVE_UART_RXCTRL:
s->rxctrl = val64;
+ sifive_uart_update_irq(s);
return;
case SIFIVE_UART_DIV:
s->div = val64;