[04/12] lm32_uart: fix receive buffering

Submitted by Michael Walle on March 6, 2013, 10 p.m.

Details

Message ID 1362607209-12232-5-git-send-email-michael@walle.cc
State New
Headers show

Commit Message

Michael Walle March 6, 2013, 10 p.m.
Inform qemu-char when more input data can be received.

Signed-off-by: Michael Walle <michael@walle.cc>
---
 hw/lm32_uart.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

Patch hide | download patch | download mbox

diff --git a/hw/lm32_uart.c b/hw/lm32_uart.c
index 9c89cca..5b44f7f 100644
--- a/hw/lm32_uart.c
+++ b/hw/lm32_uart.c
@@ -137,6 +137,7 @@  static uint64_t uart_read(void *opaque, hwaddr addr,
         r = s->regs[R_RXTX];
         s->regs[R_LSR] &= ~LSR_DR;
         uart_update_irq(s);
+        qemu_chr_accept_input(s->chr);
         break;
     case R_IIR:
     case R_LSR: