diff options
author | Frederik van Hövell <frederik@fvhovell.nl> | 2024-07-29 13:34:18 +0100 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2024-07-29 13:34:18 +0100 |
commit | 546d574b11e02bfd5b15cdf1564842c14516dfab (patch) | |
tree | 9d91f841898ab18e0f091e3a93814a990dbd9b39 /module-common.c | |
parent | 93b799fafd9170da3a79a533ea6f73a18de82e22 (diff) | |
download | qemu-546d574b11e02bfd5b15cdf1564842c14516dfab.zip qemu-546d574b11e02bfd5b15cdf1564842c14516dfab.tar.gz qemu-546d574b11e02bfd5b15cdf1564842c14516dfab.tar.bz2 |
hw/char/bcm2835_aux: Fix assert when receive FIFO fills up
When a bare-metal application on the raspi3 board reads the
AUX_MU_STAT_REG MMIO register while the device's buffer is
at full receive FIFO capacity
(i.e. `s->read_count == BCM2835_AUX_RX_FIFO_LEN`) the
assertion `assert(s->read_count < BCM2835_AUX_RX_FIFO_LEN)`
fails.
Reported-by: Cryptjar <cryptjar@junk.studio>
Suggested-by: Cryptjar <cryptjar@junk.studio>
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/459
Signed-off-by: Frederik van Hövell <frederik@fvhovell.nl>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
[PMM: commit message tweaks]
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'module-common.c')
0 files changed, 0 insertions, 0 deletions