From: Peter Crosthwaite Date: Wed, 5 Dec 2012 06:53:44 +0000 (+1000) Subject: xilinx_uartlite: Accept input after rx FIFO pop X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=80625b97b52836b944a6438e8e3e9d992e6a00b6;p=qemu.git xilinx_uartlite: Accept input after rx FIFO pop The device return false from the can receive function when the FIFO is full. This mean the device should check for buffered input whenever a byte is popped from the FIFO. Reported-by: Jason Wu Signed-off-by: Peter Crosthwaite Signed-off-by: Edgar E. Iglesias --- diff --git a/hw/xilinx_uartlite.c b/hw/xilinx_uartlite.c index f890f2363d..02c5850331 100644 --- a/hw/xilinx_uartlite.c +++ b/hw/xilinx_uartlite.c @@ -97,6 +97,7 @@ uart_read(void *opaque, hwaddr addr, unsigned int size) s->rx_fifo_len--; uart_update_status(s); uart_update_irq(s); + qemu_chr_accept_input(s->chr); break; default: