summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2022-02-22 02:04:16 +0100
committerbunnei <bunneidev@gmail.com>2022-02-27 19:34:02 +0100
commit18e77a54c383391b7c7411ce48b835bb99a44405 (patch)
tree5659a750e4f1c733ffe4bee188f4e408af2d8743
parenthle: kernel: k_memory_region_types: Update for new regions. (diff)
downloadyuzu-18e77a54c383391b7c7411ce48b835bb99a44405.tar
yuzu-18e77a54c383391b7c7411ce48b835bb99a44405.tar.gz
yuzu-18e77a54c383391b7c7411ce48b835bb99a44405.tar.bz2
yuzu-18e77a54c383391b7c7411ce48b835bb99a44405.tar.lz
yuzu-18e77a54c383391b7c7411ce48b835bb99a44405.tar.xz
yuzu-18e77a54c383391b7c7411ce48b835bb99a44405.tar.zst
yuzu-18e77a54c383391b7c7411ce48b835bb99a44405.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);
}