diff options
author | Lioncash <mathew1800@gmail.com> | 2020-07-13 16:33:36 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2020-07-13 16:42:49 +0200 |
commit | c3eb42de65f4e6e9914528b963ca90c5e92ead17 (patch) | |
tree | 9e5e082eab13af8ebd08ec58e6e7ab6b6a303a3e /src/core/hle/kernel/memory/address_space_info.h | |
parent | Merge pull request #4317 from lioncash/boost (diff) | |
download | yuzu-c3eb42de65f4e6e9914528b963ca90c5e92ead17.tar yuzu-c3eb42de65f4e6e9914528b963ca90c5e92ead17.tar.gz yuzu-c3eb42de65f4e6e9914528b963ca90c5e92ead17.tar.bz2 yuzu-c3eb42de65f4e6e9914528b963ca90c5e92ead17.tar.lz yuzu-c3eb42de65f4e6e9914528b963ca90c5e92ead17.tar.xz yuzu-c3eb42de65f4e6e9914528b963ca90c5e92ead17.tar.zst yuzu-c3eb42de65f4e6e9914528b963ca90c5e92ead17.zip |
Diffstat (limited to 'src/core/hle/kernel/memory/address_space_info.h')
-rw-r--r-- | src/core/hle/kernel/memory/address_space_info.h | 29 |
1 files changed, 5 insertions, 24 deletions
diff --git a/src/core/hle/kernel/memory/address_space_info.h b/src/core/hle/kernel/memory/address_space_info.h index c479890be..a4e6e91e5 100644 --- a/src/core/hle/kernel/memory/address_space_info.h +++ b/src/core/hle/kernel/memory/address_space_info.h @@ -11,8 +11,7 @@ namespace Kernel::Memory { -class AddressSpaceInfo final : NonCopyable { -public: +struct AddressSpaceInfo final { enum class Type : u32 { Is32Bit = 0, Small64Bit = 1, @@ -23,31 +22,13 @@ public: Count, }; -private: - std::size_t bit_width{}; - std::size_t addr{}; - std::size_t size{}; - Type type{}; - -public: static u64 GetAddressSpaceStart(std::size_t width, Type type); static std::size_t GetAddressSpaceSize(std::size_t width, Type type); - constexpr AddressSpaceInfo(std::size_t bit_width, std::size_t addr, std::size_t size, Type type) - : bit_width{bit_width}, addr{addr}, size{size}, type{type} {} - - constexpr std::size_t GetWidth() const { - return bit_width; - } - constexpr std::size_t GetAddress() const { - return addr; - } - constexpr std::size_t GetSize() const { - return size; - } - constexpr Type GetType() const { - return type; - } + const std::size_t bit_width{}; + const std::size_t address{}; + const std::size_t size{}; + const Type type{}; }; } // namespace Kernel::Memory |