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:
parent
ab2b9f174d
commit
44ac582d80
|
@ -132,6 +132,7 @@ static void uart_write(void *opaque, hwaddr addr, uint64_t value,
|
||||||
case R_STAT:
|
case R_STAT:
|
||||||
/* write one to clear bits */
|
/* write one to clear bits */
|
||||||
s->regs[addr] &= ~(value & (STAT_RX_EVT | STAT_TX_EVT));
|
s->regs[addr] &= ~(value & (STAT_RX_EVT | STAT_TX_EVT));
|
||||||
|
qemu_chr_accept_input(s->chr);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in a new issue