Skip to content

Commit

Permalink
sw: Avoid undefined non-void* to integer casts
Browse files Browse the repository at this point in the history
  • Loading branch information
paulsc96 committed Nov 20, 2024
1 parent d7e1176 commit bbff9be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sw/tests/axirt_budget.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion sw/tests/axirt_budget_isolate.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bbff9be

Please sign in to comment.