exclusive_monitor.cpp 725 B

12345678910111213141516171819202122232425
  1. // Copyright 2018 yuzu emulator team
  2. // Licensed under GPLv2 or any later version
  3. // Refer to the license.txt file included.
  4. #ifdef ARCHITECTURE_x86_64
  5. #include "core/arm/dynarmic/arm_dynarmic_64.h"
  6. #endif
  7. #include "core/arm/exclusive_monitor.h"
  8. #include "core/memory.h"
  9. namespace Core {
  10. ExclusiveMonitor::~ExclusiveMonitor() = default;
  11. std::unique_ptr<Core::ExclusiveMonitor> MakeExclusiveMonitor(Memory::Memory& memory,
  12. std::size_t num_cores) {
  13. #ifdef ARCHITECTURE_x86_64
  14. return std::make_unique<Core::DynarmicExclusiveMonitor>(memory, num_cores);
  15. #else
  16. // TODO(merry): Passthrough exclusive monitor
  17. return nullptr;
  18. #endif
  19. }
  20. } // namespace Core