From adbb9c2b00061a180f2b64634150dacc40933f70 Mon Sep 17 00:00:00 2001 From: bunnei Date: Sat, 26 Feb 2022 10:19:38 -0800 Subject: hle: kernel: k_page_heap: GetPhysicalAddr can be const. --- src/core/hle/kernel/k_page_table.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') 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; -- cgit v1.2.3