aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Crosthwaite <peter.crosthwaite@xilinx.com>2013-02-12 11:29:31 +1000
committerAnthony Liguori <aliguori@us.ibm.com>2013-02-13 11:57:58 -0600
commit9893c80d81587ac25d8ea4a82651371b54e7df35 (patch)
tree7b7bb20a76dd7ebc7ed5fe80bd742a120d2b0774
parent8a8f5840082eb65d140ccfe7b128c92390cce1c3 (diff)
downloadqemu-9893c80d81587ac25d8ea4a82651371b54e7df35.zip
qemu-9893c80d81587ac25d8ea4a82651371b54e7df35.tar.gz
qemu-9893c80d81587ac25d8ea4a82651371b54e7df35.tar.bz2
cadance_uart: Accept input after rx FIFO pop
The device returns false from the can receive function when the FIFO is full. This means the device should check for buffered input whenever a byte is popped from the FIFO. Reported-by: Jason Wu <huanyu@xilinx.com> Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com> Message-id: 1360632571-25638-1-git-send-email-peter.crosthwaite@xilinx.com Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
-rw-r--r--hw/cadence_uart.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/cadence_uart.c b/hw/cadence_uart.c
index cf2f53c..5766d38 100644
--- a/hw/cadence_uart.c
+++ b/hw/cadence_uart.c
@@ -343,6 +343,7 @@ static void uart_read_rx_fifo(UartState *s, uint32_t *c)
if (!s->rx_count) {
s->r[R_SR] |= UART_SR_INTR_REMPTY;
}
+ qemu_chr_accept_input(s->chr);
} else {
*c = 0;
s->r[R_SR] |= UART_SR_INTR_REMPTY;