]> xenbits.xensource.com Git - people/aperard/qemu-dm.git/commitdiff
xilinx_uartlite: Accept input after rx FIFO pop
authorPeter Crosthwaite <peter.crosthwaite@xilinx.com>
Wed, 5 Dec 2012 06:53:44 +0000 (16:53 +1000)
committerEdgar E. Iglesias <edgar.iglesias@gmail.com>
Wed, 5 Dec 2012 08:20:36 +0000 (09:20 +0100)
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 <huanyu@xilinx.com>
Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
hw/xilinx_uartlite.c

index f890f2363db66a82e06469cb6acf1163906e6431..02c5850331b8f463aa7b91823e7a447f466c863f 100644 (file)
@@ -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: