summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2022-02-26 19:19:38 +0100
committerbunnei <bunneidev@gmail.com>2022-02-27 19:34:02 +0100
commitadbb9c2b00061a180f2b64634150dacc40933f70 (patch)
tree25ee1b406cd1da54af651cf3dcd162f5433f0eae /src/core/hle/kernel
parenthle: kernel: k_page_heap: Remove superfluous consexpr. (diff)
downloadyuzu-adbb9c2b00061a180f2b64634150dacc40933f70.tar
yuzu-adbb9c2b00061a180f2b64634150dacc40933f70.tar.gz
yuzu-adbb9c2b00061a180f2b64634150dacc40933f70.tar.bz2
yuzu-adbb9c2b00061a180f2b64634150dacc40933f70.tar.lz
yuzu-adbb9c2b00061a180f2b64634150dacc40933f70.tar.xz
yuzu-adbb9c2b00061a180f2b64634150dacc40933f70.tar.zst
yuzu-adbb9c2b00061a180f2b64634150dacc40933f70.zip
Diffstat (limited to 'src/core/hle/kernel')
-rw-r--r--src/core/hle/kernel/k_page_table.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/hle/kernel/k_page_table.h b/src/core/hle/kernel/k_page_table.h
index 211b9444c..9a4510849 100644
--- a/src/core/hle/kernel/k_page_table.h
+++ b/src/core/hle/kernel/k_page_table.h
@@ -254,8 +254,7 @@ public:
return !IsOutsideASLRRegion(address, size);
}
- PAddr GetPhysicalAddr(VAddr addr) {
- ASSERT(IsLockedByCurrentThread());
+ PAddr GetPhysicalAddr(VAddr addr) const {
const auto backing_addr = page_table_impl.backing_addr[addr >> PageBits];
ASSERT(backing_addr);
return backing_addr + addr;