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