lm32_uart: fix receive buffering
authorMichael Walle <michael@walle.cc>
Mon, 30 Jul 2012 22:04:57 +0000 (00:04 +0200)
committerMichael Walle <michael@walle.cc>
Mon, 18 Mar 2013 18:40:34 +0000 (19:40 +0100)
Inform qemu-char when more input data can be received.

Signed-off-by: Michael Walle <michael@walle.cc>
hw/lm32_uart.c

index 02f6f89..32bc37a 100644 (file)
@@ -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: