summaryrefslogblamecommitdiffstats
path: root/src/core/device_memory.cpp
blob: 3a915164691e39554d0db0f26c0fc269521f3bac (plain) (tree)
1
2
3
4
5
6
7
8
9

                                                               
 
                               
                                                          


                
                         




                                                 
                            
                                                                                        
                                   
 
                                        
 
                   
// 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 ARCHITECTURE_arm64
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