diff options
author | Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> | 2025-07-11 21:46:33 +0100 |
---|---|---|
committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2025-07-15 00:25:10 +0200 |
commit | 9d6df740ec5e43bd8e4521901aca95f9780e524a (patch) | |
tree | 50489316ac8341eaec2c944d754c28080dbf530b /scripts/tracetool/backend | |
parent | e70aa5dc299c49c59bd91c80e771db56996c2188 (diff) | |
download | qemu-9d6df740ec5e43bd8e4521901aca95f9780e524a.zip qemu-9d6df740ec5e43bd8e4521901aca95f9780e524a.tar.gz qemu-9d6df740ec5e43bd8e4521901aca95f9780e524a.tar.bz2 |
esp.c: only call dma_memory_read 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_read 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-5-mark.cave-ayland@ilande.co.uk>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Diffstat (limited to 'scripts/tracetool/backend')
0 files changed, 0 insertions, 0 deletions