pineapple/src/core/device_memory.cpp

21 lines
585 B
C++
Raw Normal View History

2022-11-05 13:58:44 +01:00
// 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 {
2023-05-31 22:58:29 +02:00
#ifdef ANDROID
constexpr size_t VirtualReserveSize = 1ULL << 38;
#else
constexpr size_t VirtualReserveSize = 1ULL << 39;
#endif
2022-11-05 13:58:44 +01:00
DeviceMemory::DeviceMemory()
: buffer{Kernel::Board::Nintendo::Nx::KSystemControl::Init::GetIntendedMemorySize(),
2023-05-31 22:58:29 +02:00
VirtualReserveSize} {}
2022-11-05 13:58:44 +01:00
DeviceMemory::~DeviceMemory() = default;
} // namespace Core