aboutsummaryrefslogtreecommitdiff
path: root/scripts/qapi/parser.py
diff options
context:
space:
mode:
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>2025-07-11 21:46:34 +0100
committerPhilippe Mathieu-Daudé <philmd@linaro.org>2025-07-15 00:25:13 +0200
commit28a579a349015a7ed5a57cb4bdcdc5c60ba6b6fc (patch)
treebca63941a80210f640c0c0eea7362435c3ba64c3 /scripts/qapi/parser.py
parent9d6df740ec5e43bd8e4521901aca95f9780e524a (diff)
downloadqemu-28a579a349015a7ed5a57cb4bdcdc5c60ba6b6fc.zip
qemu-28a579a349015a7ed5a57cb4bdcdc5c60ba6b6fc.tar.gz
qemu-28a579a349015a7ed5a57cb4bdcdc5c60ba6b6fc.tar.bz2
esp.c: only call dma_memory_write function if transfer length is non-zero
In the cases where mixed DMA/non-DMA transfers are used or no data is available, it is possible for the calculated transfer length to be zero. Only call the dma_memory_write function where the transfer length is non-zero to avoid invoking the DMA engine for a zero length transfer which can have side-effects (along with generating additional tracing noise). Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Tested-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-ID: <20250711204636.542964-6-mark.cave-ayland@ilande.co.uk> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Diffstat (limited to 'scripts/qapi/parser.py')
0 files changed, 0 insertions, 0 deletions