milkymist-uart: fix receive buffering

Inform qemu-char when more input data can be received.

Signed-off-by: Michael Walle <michael@walle.cc>
This commit is contained in:
Michael Walle 2012-07-31 00:04:57 +02:00
parent ab2b9f174d
commit 44ac582d80
1 changed files with 1 additions and 0 deletions

View File

@ -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: