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