]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/char: disable ibex uart receive if the buffer is full
authorAlexander Wagner <alexander.wagner@ulal.de>
Tue, 9 Mar 2021 15:21:30 +0000 (16:21 +0100)
committerAlistair Francis <alistair.francis@wdc.com>
Tue, 23 Mar 2021 01:54:40 +0000 (21:54 -0400)
commit82a4ed8e5014ee814c63be33987e6783d5eacce2
treecf3d201721301c39b3442d2eb73e95fb7c2121ab
parent5e437d3ccdccfd85f6e69ca60f921be2dab62c3c
hw/char: disable ibex uart receive if the buffer is full

Not disabling the UART leads to QEMU overwriting the UART receive buffer with
the newest received byte. The rx_level variable is added to allow the use of
the existing OpenTitan driver libraries.

Signed-off-by: Alexander Wagner <alexander.wagner@ulal.de>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-id: 20210309152130.13038-1-alexander.wagner@ulal.de
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
hw/char/ibex_uart.c
include/hw/char/ibex_uart.h