diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/hle/kernel/k_page_table.cpp | 4 | ||||
| -rw-r--r-- | src/core/hle/kernel/k_page_table.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/core/hle/kernel/k_page_table.cpp b/src/core/hle/kernel/k_page_table.cpp index 88aa2a152..a23226d70 100644 --- a/src/core/hle/kernel/k_page_table.cpp +++ b/src/core/hle/kernel/k_page_table.cpp | |||
| @@ -1547,7 +1547,7 @@ ResultCode KPageTable::Operate(VAddr addr, std::size_t num_pages, KMemoryPermiss | |||
| 1547 | return ResultSuccess; | 1547 | return ResultSuccess; |
| 1548 | } | 1548 | } |
| 1549 | 1549 | ||
| 1550 | constexpr VAddr KPageTable::GetRegionAddress(KMemoryState state) const { | 1550 | VAddr KPageTable::GetRegionAddress(KMemoryState state) const { |
| 1551 | switch (state) { | 1551 | switch (state) { |
| 1552 | case KMemoryState::Free: | 1552 | case KMemoryState::Free: |
| 1553 | case KMemoryState::Kernel: | 1553 | case KMemoryState::Kernel: |
| @@ -1583,7 +1583,7 @@ constexpr VAddr KPageTable::GetRegionAddress(KMemoryState state) const { | |||
| 1583 | } | 1583 | } |
| 1584 | } | 1584 | } |
| 1585 | 1585 | ||
| 1586 | constexpr std::size_t KPageTable::GetRegionSize(KMemoryState state) const { | 1586 | std::size_t KPageTable::GetRegionSize(KMemoryState state) const { |
| 1587 | switch (state) { | 1587 | switch (state) { |
| 1588 | case KMemoryState::Free: | 1588 | case KMemoryState::Free: |
| 1589 | case KMemoryState::Kernel: | 1589 | case KMemoryState::Kernel: |
diff --git a/src/core/hle/kernel/k_page_table.h b/src/core/hle/kernel/k_page_table.h index c98887d34..211b9444c 100644 --- a/src/core/hle/kernel/k_page_table.h +++ b/src/core/hle/kernel/k_page_table.h | |||
| @@ -102,8 +102,8 @@ private: | |||
| 102 | OperationType operation); | 102 | OperationType operation); |
| 103 | ResultCode Operate(VAddr addr, std::size_t num_pages, KMemoryPermission perm, | 103 | ResultCode Operate(VAddr addr, std::size_t num_pages, KMemoryPermission perm, |
| 104 | OperationType operation, PAddr map_addr = 0); | 104 | OperationType operation, PAddr map_addr = 0); |
| 105 | constexpr VAddr GetRegionAddress(KMemoryState state) const; | 105 | VAddr GetRegionAddress(KMemoryState state) const; |
| 106 | constexpr std::size_t GetRegionSize(KMemoryState state) const; | 106 | std::size_t GetRegionSize(KMemoryState state) const; |
| 107 | 107 | ||
| 108 | ResultCode CheckMemoryStateContiguous(std::size_t* out_blocks_needed, VAddr addr, | 108 | ResultCode CheckMemoryStateContiguous(std::size_t* out_blocks_needed, VAddr addr, |
| 109 | std::size_t size, KMemoryState state_mask, | 109 | std::size_t size, KMemoryState state_mask, |