aboutsummaryrefslogtreecommitdiff
path: root/hw/char/cmsdk-apb-uart.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/char/cmsdk-apb-uart.c')
-rw-r--r--hw/char/cmsdk-apb-uart.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/char/cmsdk-apb-uart.c b/hw/char/cmsdk-apb-uart.c
index 1ad1e14295..9c0929d8a2 100644
--- a/hw/char/cmsdk-apb-uart.c
+++ b/hw/char/cmsdk-apb-uart.c
@@ -274,6 +274,7 @@ static void uart_write(void *opaque, hwaddr offset, uint64_t value,
* is then reflected into the intstatus value by the update function).
*/
s->state &= ~(value & (R_INTSTATUS_TXO_MASK | R_INTSTATUS_RXO_MASK));
+ s->intstatus &= ~value;
cmsdk_apb_uart_update(s);
break;
case A_BAUDDIV: