diff options
| author | 2022-02-21 17:04:16 -0800 | |
|---|---|---|
| committer | 2022-02-27 10:34:02 -0800 | |
| commit | 18e77a54c383391b7c7411ce48b835bb99a44405 (patch) | |
| tree | 5659a750e4f1c733ffe4bee188f4e408af2d8743 | |
| parent | hle: kernel: k_memory_region_types: Update for new regions. (diff) | |
| download | yuzu-18e77a54c383391b7c7411ce48b835bb99a44405.tar.gz yuzu-18e77a54c383391b7c7411ce48b835bb99a44405.tar.xz yuzu-18e77a54c383391b7c7411ce48b835bb99a44405.zip | |
hle: kernel: k_memory_layout: Add GetPhysicalLinearRegion.
Diffstat (limited to '')
| -rw-r--r-- | src/core/hle/kernel/k_memory_layout.h | 4 |
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: | |||
| 173 | return Dereference(FindVirtualLinear(address)); | 173 | return Dereference(FindVirtualLinear(address)); |
| 174 | } | 174 | } |
| 175 | 175 | ||
| 176 | const KMemoryRegion& GetPhysicalLinearRegion(PAddr address) const { | ||
| 177 | return Dereference(FindPhysicalLinear(address)); | ||
| 178 | } | ||
| 179 | |||
| 176 | const KMemoryRegion* GetPhysicalKernelTraceBufferRegion() const { | 180 | const KMemoryRegion* GetPhysicalKernelTraceBufferRegion() const { |
| 177 | return GetPhysicalMemoryRegionTree().FindFirstDerived(KMemoryRegionType_KernelTraceBuffer); | 181 | return GetPhysicalMemoryRegionTree().FindFirstDerived(KMemoryRegionType_KernelTraceBuffer); |
| 178 | } | 182 | } |