2024-03-05 20:49:07 +00:00
|
|
|
// SPDX-FileCopyrightText: Copyright 2020 suyu Emulator Project
|
2022-04-23 08:59:50 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2020-04-03 02:00:41 +00:00
|
|
|
|
|
|
|
#include "core/device_memory.h"
|
2022-02-21 20:36:34 +00:00
|
|
|
#include "hle/kernel/board/nintendo/nx/k_system_control.h"
|
2020-04-03 02:00:41 +00:00
|
|
|
|
|
|
|
namespace Core {
|
|
|
|
|
2023-11-20 13:52:18 +00:00
|
|
|
#ifdef HAS_NCE
|
2023-01-01 17:12:01 +00:00
|
|
|
constexpr size_t VirtualReserveSize = 1ULL << 38;
|
|
|
|
#else
|
|
|
|
constexpr size_t VirtualReserveSize = 1ULL << 39;
|
|
|
|
#endif
|
|
|
|
|
2023-11-17 21:44:53 +00:00
|
|
|
DeviceMemory::DeviceMemory()
|
2022-02-21 20:36:34 +00:00
|
|
|
: buffer{Kernel::Board::Nintendo::Nx::KSystemControl::Init::GetIntendedMemorySize(),
|
2023-11-17 21:44:53 +00:00
|
|
|
VirtualReserveSize} {}
|
2023-11-17 20:23:48 +00:00
|
|
|
|
2020-04-08 21:39:58 +00:00
|
|
|
DeviceMemory::~DeviceMemory() = default;
|
2020-04-03 02:00:41 +00:00
|
|
|
|
|
|
|
} // namespace Core
|