]> git.proxmox.com Git - qemu.git/blobdiff - hw/soc_dma.h
user: Restore debug usage message for '-d ?' in user mode emulation
[qemu.git] / hw / soc_dma.h
index 47bc4ea2690d28cd67472a8d0174b220c7121c1f..c0ebb8d71529c48ab11bc2070ecee0bf123ee339 100644 (file)
@@ -15,8 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License along
- * with this program; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * with this program; if not, see <http://www.gnu.org/licenses/>.
  */
 
 struct soc_dma_s;
@@ -110,5 +109,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);
 }