aboutsummaryrefslogtreecommitdiff
path: root/hw/rx
diff options
context:
space:
mode:
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>2021-04-07 20:57:53 +0100
committerMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>2021-04-12 22:34:02 +0100
commitc5fef9112b15c4b5494791cdf8bbb40bc1938dd3 (patch)
tree11ecb9d685b0cce2d55f3714217ba71b5f036c4a /hw/rx
parente5455b8c1c6170c788f3c0fd577cc3be53539a99 (diff)
downloadqemu-c5fef9112b15c4b5494791cdf8bbb40bc1938dd3.zip
qemu-c5fef9112b15c4b5494791cdf8bbb40bc1938dd3.tar.gz
qemu-c5fef9112b15c4b5494791cdf8bbb40bc1938dd3.tar.bz2
esp: consolidate esp_cmdfifo_pop() into esp_fifo_pop()
Each FIFO currently has its own pop functions with the only difference being the capacity check. The original reason for this was that the fifo8 implementation doesn't have a formal API for retrieving the FIFO capacity, however there are multiple examples within QEMU where the capacity field is accessed directly. Change esp_fifo_pop() to access the FIFO capacity directly and then consolidate esp_cmdfifo_pop() into esp_fifo_pop(). Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Tested-by: Alexander Bulekov <alxndr@bu.edu> Message-Id: <20210407195801.685-5-mark.cave-ayland@ilande.co.uk>
Diffstat (limited to 'hw/rx')
0 files changed, 0 insertions, 0 deletions