Patchwork [04/12] lm32_uart: fix receive buffering

login
register
mail settings
Submitter Michael Walle
Date March 6, 2013, 10 p.m.
Message ID <1362607209-12232-5-git-send-email-michael@walle.cc>
Download mbox | patch
Permalink /patch/225662/
State New
Headers show

Comments

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

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: