aboutsummaryrefslogtreecommitdiff
path: root/hw/milkymist-uart.c
diff options
context:
space:
mode:
authorMichael Walle <michael@walle.cc>2012-07-31 00:04:57 +0200
committerMichael Walle <michael@walle.cc>2013-03-18 19:40:34 +0100
commit44ac582d80688ea049c96a20868f4333c6885404 (patch)
tree387754822b44fd5c136ab65946b13bace4a37af9 /hw/milkymist-uart.c
parentab2b9f174db088633922eaa82c2bcffd84e6bb94 (diff)
milkymist-uart: fix receive buffering
Inform qemu-char when more input data can be received. Signed-off-by: Michael Walle <michael@walle.cc>
Diffstat (limited to 'hw/milkymist-uart.c')
-rw-r--r--hw/milkymist-uart.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/milkymist-uart.c b/hw/milkymist-uart.c
index ac6f5373ad..f3bdf6991a 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: