From: Hans-Erik Floryd Date: Mon, 30 Oct 2023 15:15:17 +0000 (+0100) Subject: hw/char/stm32f2xx_usart: Update IRQ when DR is written X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=2e9cb201a8ad00b8b5eda98260aadabd1fdd0b82;p=qmiga%2Fqemu.git hw/char/stm32f2xx_usart: Update IRQ when DR is written Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Reviewed-by: Alistair Francis Signed-off-by: Hans-Erik Floryd Message-id: 20231030151528.1138131-3-hans-erik.floryd@rt-labs.com Signed-off-by: Peter Maydell --- diff --git a/hw/char/stm32f2xx_usart.c b/hw/char/stm32f2xx_usart.c index 519d3461a3..8753afeb2b 100644 --- a/hw/char/stm32f2xx_usart.c +++ b/hw/char/stm32f2xx_usart.c @@ -168,6 +168,7 @@ static void stm32f2xx_usart_write(void *opaque, hwaddr addr, clear TC by writing 0 to the SR register, so set it again on each write. */ s->usart_sr |= USART_SR_TC; + stm32f2xx_update_irq(s); } return; case USART_BRR: