Explorar el Código

hle: kernel: k_memory_layout: Add GetPhysicalLinearRegion.

bunnei hace 4 años
padre
commit
18e77a54c3
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. 4 0
      src/core/hle/kernel/k_memory_layout.h

+ 4 - 0
src/core/hle/kernel/k_memory_layout.h

@@ -173,6 +173,10 @@ public:
         return Dereference(FindVirtualLinear(address));
     }
 
+    const KMemoryRegion& GetPhysicalLinearRegion(PAddr address) const {
+        return Dereference(FindPhysicalLinear(address));
+    }
+
     const KMemoryRegion* GetPhysicalKernelTraceBufferRegion() const {
         return GetPhysicalMemoryRegionTree().FindFirstDerived(KMemoryRegionType_KernelTraceBuffer);
     }