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



                                            
                          
                                                    
      
                                       
                        
 

                
                                                
 

                                                                                     







                                                                               
                   
// Copyright 2018 yuzu emulator team
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.

#ifdef ARCHITECTURE_x86_64
#include "core/arm/dynarmic/arm_exclusive_monitor.h"
#endif
#include "core/arm/exclusive_monitor.h"
#include "core/memory.h"

namespace Core {

ExclusiveMonitor::~ExclusiveMonitor() = default;

std::unique_ptr<Core::ExclusiveMonitor> MakeExclusiveMonitor(Memory::Memory& memory,
                                                             std::size_t num_cores) {
#ifdef ARCHITECTURE_x86_64
    return std::make_unique<Core::DynarmicExclusiveMonitor>(memory, num_cores);
#else
    // TODO(merry): Passthrough exclusive monitor
    return nullptr;
#endif
}

} // namespace Core