On 10/7/26 12:58, Peter Maydell wrote:
Our current single OMAP SoC doesn't call the soc_dma_port_add_fifo(),
soc_dma_port_add_fifo_in() or soc_dma_port_add_fifo_out() functions.
Remove them, plus the soc_dma_port_fifo handling that only those
functions needed.

The motivation for this is that it removes a lot of code that is
careless about the fact that the largest possible DMA transfer is
more bits than will fit into an "int" variable, and which does direct
accesses to host memory pointers into guest backing RAM without doing
bounds checks.  Deleting this code means we don't have to audit and
update it.

Signed-off-by: Peter Maydell <[email protected]>
---
  hw/dma/soc_dma.c         | 105 +--------------------------------------
  include/hw/arm/soc_dma.h |  24 ++-------
  2 files changed, 5 insertions(+), 124 deletions(-)

Nice.

Reviewed-by: Philippe Mathieu-Daudé <[email protected]>

Reply via email to