summary refs log tree commit diff stats
path: root/scripts/xml-preprocess.py
diff options
context:
space:
mode:
authorAlistair Francis <alistair.francis@wdc.com>2024-08-15 10:57:28 +1000
committerAlistair Francis <alistair.francis@wdc.com>2024-10-30 11:22:08 +1000
commit53c1557b230986ab6320a58e1b2c26216ecd86d5 (patch)
tree9121bd92b12914638f9d03d7aab4cbba8d52429f /scripts/xml-preprocess.py
parent4a0e8ca322d2a5ec9bdd9409cb02d4c08a07bef6 (diff)
downloadfocaccia-qemu-53c1557b230986ab6320a58e1b2c26216ecd86d5.tar.gz
focaccia-qemu-53c1557b230986ab6320a58e1b2c26216ecd86d5.zip
hw/char: sifive_uart: Print uart characters async
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>
Diffstat (limited to 'scripts/xml-preprocess.py')
0 files changed, 0 insertions, 0 deletions