hw/dma: Use dma_addr_t type definition when relevant
authorPhilippe Mathieu-Daudé <philmd@redhat.com>
Fri, 31 Dec 2021 10:33:29 +0000 (11:33 +0100)
committerPhilippe Mathieu-Daudé <f4bug@amsat.org>
Tue, 18 Jan 2022 11:56:29 +0000 (12:56 +0100)
commitbfa30f3903e0542611196b21f5832a4be5775a21
tree6b2e7195df4f014b0fcb330e2112b6478c6127ed
parent026644cf5f9fd8c27ea7f4f2fd4fea8102b30001
hw/dma: Use dma_addr_t type definition when relevant

Update the obvious places where dma_addr_t should be used
(instead of uint64_t, hwaddr, size_t, int32_t types).

This allows to have &dma_addr_t type portable on 32/64-bit
hosts.

Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20220111184309.28637-11-f4bug@amsat.org>
hw/nvme/ctrl.c
hw/rdma/rdma_utils.c
hw/scsi/megasas.c
include/sysemu/dma.h
softmmu/dma-helpers.c