diff options
author | bunnei <bunneidev@gmail.com> | 2022-01-15 08:22:06 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2022-01-22 10:33:26 +0100 |
commit | 2935c9d8dede082220b09b0084195bb78361d095 (patch) | |
tree | bac9da9f14e3fb52d892b0cadf38d25ec570b80c /src | |
parent | core: hle: kernel: KPageTable: Operate: Assert lock ownership. (diff) | |
download | yuzu-2935c9d8dede082220b09b0084195bb78361d095.tar yuzu-2935c9d8dede082220b09b0084195bb78361d095.tar.gz yuzu-2935c9d8dede082220b09b0084195bb78361d095.tar.bz2 yuzu-2935c9d8dede082220b09b0084195bb78361d095.tar.lz yuzu-2935c9d8dede082220b09b0084195bb78361d095.tar.xz yuzu-2935c9d8dede082220b09b0084195bb78361d095.tar.zst yuzu-2935c9d8dede082220b09b0084195bb78361d095.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/core/hle/kernel/k_page_table.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/hle/kernel/k_page_table.h b/src/core/hle/kernel/k_page_table.h index e57d225e6..60ae9b9e8 100644 --- a/src/core/hle/kernel/k_page_table.h +++ b/src/core/hle/kernel/k_page_table.h @@ -248,7 +248,9 @@ public: return !IsOutsideASLRRegion(address, size); } constexpr PAddr GetPhysicalAddr(VAddr addr) { - return page_table_impl.backing_addr[addr >> PageBits] + addr; + const auto backing_addr = page_table_impl.backing_addr[addr >> PageBits]; + ASSERT(backing_addr); + return backing_addr + addr; } constexpr bool Contains(VAddr addr) const { return address_space_start <= addr && addr <= address_space_end - 1; |