diff options
author | bunnei <bunneidev@gmail.com> | 2020-05-05 21:41:18 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-05 21:41:18 +0200 |
commit | 88141bb2d44f26d1015be2cd832284bf322bc3b2 (patch) | |
tree | a3b5bdfa35289ad5e8a7085356a5b79e5ca197b6 /src/core/hle/kernel/memory/address_space_info.cpp | |
parent | Merge pull request #3880 from lioncash/encoding (diff) | |
parent | kernel/memory: Remove #pragma once within cpp file (diff) | |
download | yuzu-88141bb2d44f26d1015be2cd832284bf322bc3b2.tar yuzu-88141bb2d44f26d1015be2cd832284bf322bc3b2.tar.gz yuzu-88141bb2d44f26d1015be2cd832284bf322bc3b2.tar.bz2 yuzu-88141bb2d44f26d1015be2cd832284bf322bc3b2.tar.lz yuzu-88141bb2d44f26d1015be2cd832284bf322bc3b2.tar.xz yuzu-88141bb2d44f26d1015be2cd832284bf322bc3b2.tar.zst yuzu-88141bb2d44f26d1015be2cd832284bf322bc3b2.zip |
Diffstat (limited to 'src/core/hle/kernel/memory/address_space_info.cpp')
-rw-r--r-- | src/core/hle/kernel/memory/address_space_info.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/core/hle/kernel/memory/address_space_info.cpp b/src/core/hle/kernel/memory/address_space_info.cpp index 192b123a5..a523a2502 100644 --- a/src/core/hle/kernel/memory/address_space_info.cpp +++ b/src/core/hle/kernel/memory/address_space_info.cpp @@ -49,18 +49,18 @@ constexpr bool IsAllowedIndexForAddress(std::size_t index) { return index < std::size(AddressSpaceInfos) && AddressSpaceInfos[index].GetAddress() != Invalid; } -constexpr std::size_t - AddressSpaceIndices32Bit[static_cast<std::size_t>(AddressSpaceInfo::Type::Count)]{ +constexpr std::array<std::size_t, static_cast<std::size_t>(AddressSpaceInfo::Type::Count)> + AddressSpaceIndices32Bit{ 0, 1, 0, 2, 0, 3, }; -constexpr std::size_t - AddressSpaceIndices36Bit[static_cast<std::size_t>(AddressSpaceInfo::Type::Count)]{ +constexpr std::array<std::size_t, static_cast<std::size_t>(AddressSpaceInfo::Type::Count)> + AddressSpaceIndices36Bit{ 4, 5, 4, 6, 4, 7, }; -constexpr std::size_t - AddressSpaceIndices39Bit[static_cast<std::size_t>(AddressSpaceInfo::Type::Count)]{ +constexpr std::array<std::size_t, static_cast<std::size_t>(AddressSpaceInfo::Type::Count)> + AddressSpaceIndices39Bit{ 9, 8, 8, 10, 12, 11, }; |