summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/k_memory_layout.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2022-03-03 02:55:51 +0100
committerGitHub <noreply@github.com>2022-03-03 02:55:51 +0100
commit3ab82e758285108e12ff5ebcadb419a0d0c4e6e7 (patch)
tree96931961bb24ecbe660f7709966ccc7fa16c3ed3 /src/core/hle/kernel/k_memory_layout.h
parentMerge pull request #7959 from merryhime/cmpxchg (diff)
parenthle: kernel: Re-create memory layout at initialization. (diff)
downloadyuzu-3ab82e758285108e12ff5ebcadb419a0d0c4e6e7.tar
yuzu-3ab82e758285108e12ff5ebcadb419a0d0c4e6e7.tar.gz
yuzu-3ab82e758285108e12ff5ebcadb419a0d0c4e6e7.tar.bz2
yuzu-3ab82e758285108e12ff5ebcadb419a0d0c4e6e7.tar.lz
yuzu-3ab82e758285108e12ff5ebcadb419a0d0c4e6e7.tar.xz
yuzu-3ab82e758285108e12ff5ebcadb419a0d0c4e6e7.tar.zst
yuzu-3ab82e758285108e12ff5ebcadb419a0d0c4e6e7.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/kernel/k_memory_layout.h4
1 files changed, 4 insertions, 0 deletions
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);
}