Patchwork [03/12] milkymist-uart: fix receive buffering

login
register
mail settings
Submitter Michael Walle
Date March 6, 2013, 10 p.m.
Message ID <1362607209-12232-4-git-send-email-michael@walle.cc>
Download mbox | patch
Permalink /patch/225660/
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/milkymist-uart.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

Patch

diff --git a/hw/milkymist-uart.c b/hw/milkymist-uart.c
index e73eb84..29572b7 100644
--- a/hw/milkymist-uart.c
+++ b/hw/milkymist-uart.c
@@ -132,6 +132,7 @@  static void uart_write(void *opaque, hwaddr addr, uint64_t value,
     case R_STAT:
         /* write one to clear bits */
         s->regs[addr] &= ~(value & (STAT_RX_EVT | STAT_TX_EVT));
+        qemu_chr_accept_input(s->chr);
         break;
 
     default: