You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
794 B
24 lines
794 B
// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#if defined(ARCHITECTURE_x86_64) || defined(ARCHITECTURE_arm64)
|
|
#include "core/arm/dynarmic/dynarmic_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) {
|
|
#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
|