summaryrefslogtreecommitdiff
path: root/src/core/cpu_manager.h
diff options
context:
space:
mode:
authorGravatar Liam2022-07-05 23:27:25 -0400
committerGravatar Liam2022-07-14 22:47:18 -0400
commit21945ae127480c8332c1110ceada2df4a42a5848 (patch)
treea385c64a14b0d8e8dd71410eaa47575462f8f368 /src/core/cpu_manager.h
parentkernel: use KScheduler from mesosphere (diff)
downloadyuzu-21945ae127480c8332c1110ceada2df4a42a5848.tar.gz
yuzu-21945ae127480c8332c1110ceada2df4a42a5848.tar.xz
yuzu-21945ae127480c8332c1110ceada2df4a42a5848.zip
kernel: fix issues with single core mode
Diffstat (limited to 'src/core/cpu_manager.h')
-rw-r--r--src/core/cpu_manager.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/core/cpu_manager.h b/src/core/cpu_manager.h
index 8143424af..835505b92 100644
--- a/src/core/cpu_manager.h
+++ b/src/core/cpu_manager.h
@@ -48,12 +48,11 @@ public:
48 gpu_barrier->Sync(); 48 gpu_barrier->Sync();
49 } 49 }
50 50
51 void WaitForAndHandleInterrupt();
52 void Initialize(); 51 void Initialize();
53 void Shutdown(); 52 void Shutdown();
54 53
55 std::function<void()> GetGuestActivateFunc() { 54 std::function<void()> GetGuestActivateFunc() {
56 return [this] { GuestActivateFunction(); }; 55 return [this] { GuestActivate(); };
57 } 56 }
58 std::function<void()> GetGuestThreadFunc() { 57 std::function<void()> GetGuestThreadFunc() {
59 return [this] { GuestThreadFunction(); }; 58 return [this] { GuestThreadFunction(); };
@@ -72,21 +71,19 @@ public:
72 } 71 }
73 72
74private: 73private:
75 void GuestActivateFunction();
76 void GuestThreadFunction(); 74 void GuestThreadFunction();
77 void IdleThreadFunction(); 75 void IdleThreadFunction();
78 void ShutdownThreadFunction(); 76 void ShutdownThreadFunction();
79 77
80 void MultiCoreGuestActivate();
81 void MultiCoreRunGuestThread(); 78 void MultiCoreRunGuestThread();
82 void MultiCoreRunGuestLoop(); 79 void MultiCoreRunIdleThread();
83 80
84 void SingleCoreGuestActivate();
85 void SingleCoreRunGuestThread(); 81 void SingleCoreRunGuestThread();
86 void SingleCoreRunGuestLoop(); 82 void SingleCoreRunIdleThread();
87 83
88 static void ThreadStart(std::stop_token stop_token, CpuManager& cpu_manager, std::size_t core); 84 static void ThreadStart(std::stop_token stop_token, CpuManager& cpu_manager, std::size_t core);
89 85
86 void GuestActivate();
90 void HandleInterrupt(); 87 void HandleInterrupt();
91 void ShutdownThread(); 88 void ShutdownThread();
92 void RunThread(std::size_t core); 89 void RunThread(std::size_t core);