VERY experimental Nintendo Switch 2 emulator
C++
hle: kernel: k_memory_layout: Add GetPhysicalLinearRegion.
bunneif562f3780eb5
diff --git a/src/core/hle/kernel/k_memory_layout.h b/src/core/hle/kernel/k_memory_layout.hindex 57ff538cc0..bcddb0d620 100644--- a/src/core/hle/kernel/k_memory_layout.h+++ b/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);}