From 18e77a54c383391b7c7411ce48b835bb99a44405 Mon Sep 17 00:00:00 2001 From: bunnei Date: Mon, 21 Feb 2022 17:04:16 -0800 Subject: [PATCH] hle: kernel: k_memory_layout: Add GetPhysicalLinearRegion. --- src/core/hle/kernel/k_memory_layout.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/core/hle/kernel/k_memory_layout.h b/src/core/hle/kernel/k_memory_layout.h index 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); }