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