mirror of
https://git.h3cjp.net/H3cJP/yuzu.git
synced 2024-11-15 15:22:55 +00:00
hle: kernel: k_page_heap: GetPhysicalAddr can be const.
This commit is contained in:
parent
f7e65eb971
commit
adbb9c2b00
|
@ -254,8 +254,7 @@ public:
|
||||||
return !IsOutsideASLRRegion(address, size);
|
return !IsOutsideASLRRegion(address, size);
|
||||||
}
|
}
|
||||||
|
|
||||||
PAddr GetPhysicalAddr(VAddr addr) {
|
PAddr GetPhysicalAddr(VAddr addr) const {
|
||||||
ASSERT(IsLockedByCurrentThread());
|
|
||||||
const auto backing_addr = page_table_impl.backing_addr[addr >> PageBits];
|
const auto backing_addr = page_table_impl.backing_addr[addr >> PageBits];
|
||||||
ASSERT(backing_addr);
|
ASSERT(backing_addr);
|
||||||
return backing_addr + addr;
|
return backing_addr + addr;
|
||||||
|
|
Loading…
Reference in a new issue