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

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

Details

Message ID 1362607209-12232-4-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/milkymist-uart.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

Patch hide | download patch | download mbox

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: