summaryrefslogtreecommitdiff
path: root/src/core/core_manager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/core_manager.cpp')
-rw-r--r--src/core/core_manager.cpp51
1 files changed, 0 insertions, 51 deletions
diff --git a/src/core/core_manager.cpp b/src/core/core_manager.cpp
deleted file mode 100644
index 82d7acb40..000000000
--- a/src/core/core_manager.cpp
+++ /dev/null
@@ -1,51 +0,0 @@
1// Copyright 2018 yuzu emulator team
2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included.
4
5#include <condition_variable>
6#include <mutex>
7
8#include "common/logging/log.h"
9#include "core/arm/exclusive_monitor.h"
10#include "core/arm/unicorn/arm_unicorn.h"
11#include "core/core.h"
12#include "core/core_manager.h"
13#include "core/core_timing.h"
14#include "core/hle/kernel/kernel.h"
15#include "core/hle/kernel/physical_core.h"
16#include "core/hle/kernel/scheduler.h"
17#include "core/hle/kernel/thread.h"
18#include "core/hle/lock.h"
19#include "core/settings.h"
20
21namespace Core {
22
23CoreManager::CoreManager(System& system, std::size_t core_index)
24 : global_scheduler{system.GlobalScheduler()}, physical_core{system.Kernel().PhysicalCore(
25 core_index)},
26 core_timing{system.CoreTiming()}, core_index{core_index} {}
27
28CoreManager::~CoreManager() = default;
29
30void CoreManager::RunLoop(bool tight_loop) {
31 /// Deprecated
32}
33
34void CoreManager::SingleStep() {
35 return RunLoop(false);
36}
37
38void CoreManager::PrepareReschedule() {
39 //physical_core.Stop();
40}
41
42void CoreManager::Reschedule() {
43 // Lock the global kernel mutex when we manipulate the HLE state
44 std::lock_guard lock(HLE::g_hle_lock);
45
46 // global_scheduler.SelectThread(core_index);
47
48 physical_core.Scheduler().TryDoContextSwitch();
49}
50
51} // namespace Core