diff options
author | bunnei <bunneidev@gmail.com> | 2021-05-05 07:14:06 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2021-05-06 01:40:55 +0200 |
commit | d57b12193b12f7b6e3565d29f7bc3d7584632768 (patch) | |
tree | 1980a34681a0467b18a83d0e52ffc91f34b2b088 /src | |
parent | hle: kernel: Move slab resource counts to Kernel. (diff) | |
download | yuzu-d57b12193b12f7b6e3565d29f7bc3d7584632768.tar yuzu-d57b12193b12f7b6e3565d29f7bc3d7584632768.tar.gz yuzu-d57b12193b12f7b6e3565d29f7bc3d7584632768.tar.bz2 yuzu-d57b12193b12f7b6e3565d29f7bc3d7584632768.tar.lz yuzu-d57b12193b12f7b6e3565d29f7bc3d7584632768.tar.xz yuzu-d57b12193b12f7b6e3565d29f7bc3d7584632768.tar.zst yuzu-d57b12193b12f7b6e3565d29f7bc3d7584632768.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/core/hle/kernel/k_page_table.cpp | 2 | ||||
-rw-r--r-- | src/core/hle/kernel/k_page_table.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/kernel/k_page_table.cpp b/src/core/hle/kernel/k_page_table.cpp index 6c5d7d602..d4ce98ee3 100644 --- a/src/core/hle/kernel/k_page_table.cpp +++ b/src/core/hle/kernel/k_page_table.cpp @@ -1106,7 +1106,7 @@ constexpr std::size_t KPageTable::GetRegionSize(KMemoryState state) const { } } -constexpr bool KPageTable::CanContain(VAddr addr, std::size_t size, KMemoryState state) const { +bool KPageTable::CanContain(VAddr addr, std::size_t size, KMemoryState state) const { const VAddr end{addr + size}; const VAddr last{end - 1}; const VAddr region_start{GetRegionAddress(state)}; diff --git a/src/core/hle/kernel/k_page_table.h b/src/core/hle/kernel/k_page_table.h index baec7c260..8c2cc03eb 100644 --- a/src/core/hle/kernel/k_page_table.h +++ b/src/core/hle/kernel/k_page_table.h @@ -64,7 +64,7 @@ public: return page_table_impl; } - constexpr bool CanContain(VAddr addr, std::size_t size, KMemoryState state) const; + bool CanContain(VAddr addr, std::size_t size, KMemoryState state) const; private: enum class OperationType : u32 { |