summary refs log tree commit diff stats
path: root/hw/dma/xilinx_axidma.c
diff options
context:
space:
mode:
authorFea.Wang <fea.wang@sifive.com>2024-06-13 09:35:00 +0800
committerEdgar E. Iglesias <edgar.iglesias@amd.com>2024-06-18 14:52:00 +0200
commit8e25dddaf93bd9b2fa79e4b5229e7b3a97a86b7f (patch)
treeacc8bad6aedc58fe898bcc2808a4d5a399ed0ff3 /hw/dma/xilinx_axidma.c
parente6b45b6bb9ce721119857507a66768b06e8836a2 (diff)
downloadfocaccia-qemu-8e25dddaf93bd9b2fa79e4b5229e7b3a97a86b7f.tar.gz
focaccia-qemu-8e25dddaf93bd9b2fa79e4b5229e7b3a97a86b7f.zip
hw/dma: Add a trace log for a description loading failure
Due to a description loading failure, adding a trace log makes observing
the DMA behavior easy.

Signed-off-by: Fea.Wang <fea.wang@sifive.com>
Reviewed-by: Edgar E. Iglesias <edgar.iglesias@amd.com>
Reviewed-by: Frank Chang <frank.chang@sifive.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@amd.com>
Diffstat (limited to 'hw/dma/xilinx_axidma.c')
-rw-r--r--hw/dma/xilinx_axidma.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/hw/dma/xilinx_axidma.c b/hw/dma/xilinx_axidma.c
index ad307994c2..c9cfc3169b 100644
--- a/hw/dma/xilinx_axidma.c
+++ b/hw/dma/xilinx_axidma.c
@@ -36,6 +36,7 @@
 #include "sysemu/dma.h"
 #include "hw/stream.h"
 #include "qom/object.h"
+#include "trace.h"
 
 #define D(x)
 
@@ -201,6 +202,8 @@ static MemTxResult stream_desc_load(struct Stream *s, hwaddr addr)
                                             addr, MEMTXATTRS_UNSPECIFIED,
                                             d, sizeof *d);
     if (result != MEMTX_OK) {
+        trace_xilinx_axidma_loading_desc_fail(result);
+
         if (result == MEMTX_DECODE_ERROR) {
             s->regs[R_DMASR] |= DMASR_DECERR;
         } else {