summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/k_memory_layout.h
diff options
context:
space:
mode:
authorLiam <byteslice@airmail.cc>2023-10-11 15:44:49 +0200
committerLiam <byteslice@airmail.cc>2023-10-20 08:34:15 +0200
commit22afa2c7a39e11ccbe572e600a5a863cd323f2b0 (patch)
tree517d3d8a730140c12e7f6cbbeed6d37a508bd6bc /src/core/hle/kernel/k_memory_layout.h
parentMerge pull request #11822 from german77/no-name (diff)
downloadyuzu-22afa2c7a39e11ccbe572e600a5a863cd323f2b0.tar
yuzu-22afa2c7a39e11ccbe572e600a5a863cd323f2b0.tar.gz
yuzu-22afa2c7a39e11ccbe572e600a5a863cd323f2b0.tar.bz2
yuzu-22afa2c7a39e11ccbe572e600a5a863cd323f2b0.tar.lz
yuzu-22afa2c7a39e11ccbe572e600a5a863cd323f2b0.tar.xz
yuzu-22afa2c7a39e11ccbe572e600a5a863cd323f2b0.tar.zst
yuzu-22afa2c7a39e11ccbe572e600a5a863cd323f2b0.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/kernel/k_memory_layout.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/core/hle/kernel/k_memory_layout.h b/src/core/hle/kernel/k_memory_layout.h
index 54a71df56..c8122644f 100644
--- a/src/core/hle/kernel/k_memory_layout.h
+++ b/src/core/hle/kernel/k_memory_layout.h
@@ -137,11 +137,9 @@ public:
return GetStackTopAddress(core_id, KMemoryRegionType_KernelMiscExceptionStack);
}
- KVirtualAddress GetSlabRegionAddress() const {
- return Dereference(GetVirtualMemoryRegionTree().FindByType(KMemoryRegionType_KernelSlab))
- .GetAddress();
+ const KMemoryRegion& GetSlabRegion() const {
+ return Dereference(GetVirtualMemoryRegionTree().FindByType(KMemoryRegionType_KernelSlab));
}
-
const KMemoryRegion& GetDeviceRegion(KMemoryRegionType type) const {
return Dereference(GetPhysicalMemoryRegionTree().FindFirstDerived(type));
}