]> Git Repo - qemu.git/commit
hw/char/cmsdk-apb-uart.c: Correctly clear INTSTATUS bits on writes
authorPeter Maydell <[email protected]>
Tue, 10 Apr 2018 13:42:03 +0000 (14:42 +0100)
committerPeter Maydell <[email protected]>
Wed, 11 Apr 2018 16:00:49 +0000 (17:00 +0100)
commit6670b494fdb23f74ecd9be3d952c007f64e268f1
tree79b7373bbae600f3cc6992d171d99f6f2a870d6d
parent6523eaca378df1455481f1cec65ada589d65df0e
hw/char/cmsdk-apb-uart.c: Correctly clear INTSTATUS bits on writes

The CMSDK APB UART INTSTATUS register bits are all write-one-to-clear.
We were getting this correct for the TXO and RXO bits (which need
special casing because their state lives in the STATE register),
but had forgotten to handle the normal bits for RX and TX which
we do store in our s->intstatus field.

Perform the W1C operation on the bits in s->intstatus too.

Fixes: https://bugs.launchpad.net/qemu/+bug/1760262
Cc: [email protected]
Reviewed-by: Philippe Mathieu-Daudé <[email protected]>
Signed-off-by: Peter Maydell <[email protected]>
Message-id: 20180410134203[email protected]
hw/char/cmsdk-apb-uart.c
This page took 0.027209 seconds and 4 git commands to generate.