yuzu/src/core/arm/exclusive_monitor.cpp

25 lines
789 B
C++
Raw Normal View History

// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
2018-07-03 13:28:46 +00:00
2022-11-06 21:45:36 +00:00
#if defined(ARCHITECTURE_x86_64) || defined(ARCHITECTURE_arm64)
#include "core/arm/dynarmic/arm_exclusive_monitor.h"
#endif
2018-07-03 13:28:46 +00:00
#include "core/arm/exclusive_monitor.h"
#include "core/memory.h"
2018-07-03 13:28:46 +00:00
namespace Core {
2018-07-03 13:28:46 +00:00
ExclusiveMonitor::~ExclusiveMonitor() = default;
2020-01-26 20:14:18 +00:00
std::unique_ptr<Core::ExclusiveMonitor> MakeExclusiveMonitor(Memory::Memory& memory,
std::size_t num_cores) {
2022-11-06 21:45:36 +00:00
#if defined(ARCHITECTURE_x86_64) || defined(ARCHITECTURE_arm64)
return std::make_unique<Core::DynarmicExclusiveMonitor>(memory, num_cores);
#else
// TODO(merry): Passthrough exclusive monitor
return nullptr;
#endif
}
} // namespace Core