cadence_uart: Handle backend tx errors
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
This commit is contained in:
parent
576156ffed
commit
b52df46551
|
@ -297,9 +297,7 @@ static void uart_write_tx_fifo(UartState *s, const uint8_t *buf, int size)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
while (size) {
|
qemu_chr_fe_write_all(s->chr, buf, size);
|
||||||
size -= qemu_chr_fe_write(s->chr, buf, size);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void uart_receive(void *opaque, const uint8_t *buf, int size)
|
static void uart_receive(void *opaque, const uint8_t *buf, int size)
|
||||||
|
|
Loading…
Reference in a new issue