]> Git Repo - qemu.git/blobdiff - hw/dma/sun4m_iommu.c
dma/rc4030: translate memory accesses only when they occur
[qemu.git] / hw / dma / sun4m_iommu.c
index ec7c2efcd94c34201ba12668d30ef42ac5df79e0..b3cbc54c234ad029b86d26552fee9a6a70cc07da 100644 (file)
@@ -22,6 +22,7 @@
  * THE SOFTWARE.
  */
 
+#include "qemu/osdep.h"
 #include "hw/sparc/sun4m.h"
 #include "hw/sysbus.h"
 #include "exec/address-spaces.h"
@@ -263,7 +264,8 @@ static uint32_t iommu_page_get_flags(IOMMUState *s, hwaddr addr)
     iopte = s->regs[IOMMU_BASE] << 4;
     addr &= ~s->iostart;
     iopte += (addr >> (IOMMU_PAGE_SHIFT - 2)) & ~3;
-    ret = ldl_be_phys(&address_space_memory, iopte);
+    ret = address_space_ldl_be(&address_space_memory, iopte,
+                               MEMTXATTRS_UNSPECIFIED, NULL);
     trace_sun4m_iommu_page_get_flags(pa, iopte, ret);
     return ret;
 }
This page took 0.020541 seconds and 4 git commands to generate.