yuzu-emu
/
yuzu
Archived
1
0
Fork 0

hle: kernel: k_page_heap: GetPhysicalAddr can be const.

This commit is contained in:
bunnei 2022-02-26 10:19:38 -08:00
parent f7e65eb971
commit adbb9c2b00
1 changed files with 1 additions and 2 deletions

View File

@ -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;