summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2021-03-20 07:52:47 +0100
committerbunnei <bunneidev@gmail.com>2021-03-21 22:45:03 +0100
commit28be8aec9a4499206662a7bd74091706000e3d6d (patch)
treed751a30ae95ae0f60a381eb1caa815ad552439be /src/core
parenthle: kernel: k_address_space_info: Cleanup. (diff)
downloadyuzu-28be8aec9a4499206662a7bd74091706000e3d6d.tar
yuzu-28be8aec9a4499206662a7bd74091706000e3d6d.tar.gz
yuzu-28be8aec9a4499206662a7bd74091706000e3d6d.tar.bz2
yuzu-28be8aec9a4499206662a7bd74091706000e3d6d.tar.lz
yuzu-28be8aec9a4499206662a7bd74091706000e3d6d.tar.xz
yuzu-28be8aec9a4499206662a7bd74091706000e3d6d.tar.zst
yuzu-28be8aec9a4499206662a7bd74091706000e3d6d.zip
Diffstat (limited to 'src/core')
-rw-r--r--src/core/hle/kernel/k_address_space_info.cpp14
1 files changed, 1 insertions, 13 deletions
diff --git a/src/core/hle/kernel/k_address_space_info.cpp b/src/core/hle/kernel/k_address_space_info.cpp
index e9f56fbed..eb8af660c 100644
--- a/src/core/hle/kernel/k_address_space_info.cpp
+++ b/src/core/hle/kernel/k_address_space_info.cpp
@@ -5,25 +5,13 @@
#include <array>
#include "common/assert.h"
+#include "common/common_sizes.h"
#include "core/hle/kernel/k_address_space_info.h"
namespace Kernel {
namespace {
-enum : u64 {
- Size_1_MB = 0x100000ULL,
- Size_2_MB = 2ULL * Size_1_MB,
- Size_128_MB = 128ULL * Size_1_MB,
- Size_1_GB = 0x40000000ULL,
- Size_2_GB = 2ULL * Size_1_GB,
- Size_4_GB = 4ULL * Size_1_GB,
- Size_6_GB = 6ULL * Size_1_GB,
- Size_64_GB = 64ULL * Size_1_GB,
- Size_512_GB = 512ULL * Size_1_GB,
- Invalid = std::numeric_limits<u64>::max(),
-};
-
// clang-format off
constexpr std::array<KAddressSpaceInfo, 13> AddressSpaceInfos{{
{ .bit_width = 32, .address = Size_2_MB , .size = Size_1_GB - Size_2_MB , .type = KAddressSpaceInfo::Type::MapSmall, },