53c1557b23
The current approach of using qemu_chr_fe_write() and ignoring the return values results in dropped characters [1]. Let's update the SiFive UART to use a async sifive_uart_xmit() function to transmit the characters and apply back pressure to the guest with the SIFIVE_UART_TXFIFO_FULL status. This should avoid dropped characters and more realisticly model the hardware. 1: https://gitlab.com/qemu-project/qemu/-/issues/2114 Signed-off-by: Alistair Francis <alistair.francis@wdc.com> Reviewed-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com> Tested-by: Thomas Huth <thuth@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-ID: <20240910045419.1252277-3-alistair.francis@wdc.com> Signed-off-by: Alistair Francis <alistair.francis@wdc.com> |
||
---|---|---|
.. | ||
avr_usart.h | ||
bcm2835_aux.h | ||
cadence_uart.h | ||
cmsdk-apb-uart.h | ||
digic-uart.h | ||
escc.h | ||
goldfish_tty.h | ||
grlib_uart.h | ||
ibex_uart.h | ||
imx_serial.h | ||
mchp_pfsoc_mmuart.h | ||
nrf51_uart.h | ||
parallel-isa.h | ||
parallel.h | ||
pl011.h | ||
renesas_sci.h | ||
riscv_htif.h | ||
serial-isa.h | ||
serial-mm.h | ||
serial.h | ||
shakti_uart.h | ||
sifive_uart.h | ||
stm32f2xx_usart.h | ||
stm32l4x5_usart.h | ||
xilinx_uartlite.h |