diff options
Diffstat (limited to 'hw/soc_dma.h')
-rw-r--r-- | hw/soc_dma.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/soc_dma.h b/hw/soc_dma.h index 47bc4ea..34b01d9 100644 --- a/hw/soc_dma.h +++ b/hw/soc_dma.h @@ -110,5 +110,5 @@ static inline void soc_dma_port_add_fifo_out(struct soc_dma_s *dma, static inline void soc_dma_port_add_mem_ram(struct soc_dma_s *dma, ram_addr_t offset, target_phys_addr_t virt_base, size_t size) { - return soc_dma_port_add_mem(dma, phys_ram_base + offset, virt_base, size); + return soc_dma_port_add_mem(dma, qemu_get_ram_ptr(offset), virt_base, size); } |