mirror of
https://gitlab.com/suyu-emu/suyu.git
synced 2024-03-15 23:15:44 +00:00
21 lines
565 B
C++
21 lines
565 B
C++
// SPDX-FileCopyrightText: Copyright 2020 yuzu Emulator Project
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#include "core/device_memory.h"
|
|
#include "hle/kernel/board/nintendo/nx/k_system_control.h"
|
|
|
|
namespace Core {
|
|
|
|
#ifdef ANDROID
|
|
constexpr size_t VirtualReserveSize = 1ULL << 38;
|
|
#else
|
|
constexpr size_t VirtualReserveSize = 1ULL << 39;
|
|
#endif
|
|
|
|
DeviceMemory::DeviceMemory()
|
|
: buffer{Kernel::Board::Nintendo::Nx::KSystemControl::Init::GetIntendedMemorySize(),
|
|
VirtualReserveSize} {}
|
|
DeviceMemory::~DeviceMemory() = default;
|
|
|
|
} // namespace Core
|