2018-07-03 06:28:46 -07:00
|
|
|
// Copyright 2018 yuzu emulator team
|
|
|
|
// Licensed under GPLv2 or any later version
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
2020-01-26 06:28:23 -08:00
|
|
|
#ifdef ARCHITECTURE_x86_64
|
|
|
|
#include "core/arm/dynarmic/arm_dynarmic.h"
|
|
|
|
#endif
|
2018-07-03 06:28:46 -07:00
|
|
|
#include "core/arm/exclusive_monitor.h"
|
2020-01-26 06:28:23 -08:00
|
|
|
#include "core/memory.h"
|
2018-07-03 06:28:46 -07:00
|
|
|
|
2018-08-24 18:43:32 -07:00
|
|
|
namespace Core {
|
|
|
|
|
2018-07-03 06:28:46 -07:00
|
|
|
ExclusiveMonitor::~ExclusiveMonitor() = default;
|
2018-08-24 18:43:32 -07:00
|
|
|
|
2020-01-26 12:14:18 -08:00
|
|
|
std::unique_ptr<Core::ExclusiveMonitor> MakeExclusiveMonitor(Memory::Memory& memory,
|
|
|
|
std::size_t num_cores) {
|
2020-01-26 06:28:23 -08:00
|
|
|
#ifdef ARCHITECTURE_x86_64
|
|
|
|
return std::make_unique<Core::DynarmicExclusiveMonitor>(memory, num_cores);
|
|
|
|
#else
|
|
|
|
// TODO(merry): Passthrough exclusive monitor
|
|
|
|
return nullptr;
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|
2018-08-24 18:43:32 -07:00
|
|
|
} // namespace Core
|