From bbff9bee52237779bb05cb392e8623e525239250 Mon Sep 17 00:00:00 2001 From: Paul Scheffler Date: Wed, 20 Nov 2024 22:12:05 +0100 Subject: [PATCH] sw: Avoid undefined non-void* to integer casts --- sw/tests/axirt_budget.c | 2 +- sw/tests/axirt_budget_isolate.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sw/tests/axirt_budget.c b/sw/tests/axirt_budget.c index 6439ff33..34491b45 100644 --- a/sw/tests/axirt_budget.c +++ b/sw/tests/axirt_budget.c @@ -89,7 +89,7 @@ int main(void) { } // Launch blocking DMA transfer - sys_dma_2d_blk_memcpy((uintptr_t)dma_dst, (uintptr_t)dma_src, DMA_SIZE_BYTES, DMA_DST_STRIDE, + sys_dma_2d_blk_memcpy((uintptr_t)(void*)dma_dst, (uintptr_t)(void*)dma_src, DMA_SIZE_BYTES, DMA_DST_STRIDE, DMA_SRC_STRIDE, DMA_NUM_REPS); // Check DMA transfers against gold. diff --git a/sw/tests/axirt_budget_isolate.c b/sw/tests/axirt_budget_isolate.c index e62121c4..eaa67ca4 100644 --- a/sw/tests/axirt_budget_isolate.c +++ b/sw/tests/axirt_budget_isolate.c @@ -87,7 +87,7 @@ int main(void) { } // Launch blocking DMA transfer - sys_dma_2d_blk_memcpy((uintptr_t)dma_dst, (uintptr_t)dma_src, DMA_SIZE_BYTES, DMA_DST_STRIDE, + sys_dma_2d_blk_memcpy((uintptr_t)(void*)dma_dst, (uintptr_t)(void*)dma_src, DMA_SIZE_BYTES, DMA_DST_STRIDE, DMA_SRC_STRIDE, DMA_NUM_REPS); // Poll isolate to check if AXI-REALM isolates the dma when the budget is