aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/cpu_manager.h
diff options
context:
space:
mode:
authorLiam <[email protected]>2022-07-05 23:27:25 -0400
committerLiam <[email protected]>2022-07-14 22:47:18 -0400
commit21945ae127480c8332c1110ceada2df4a42a5848 (patch)
treea385c64a14b0d8e8dd71410eaa47575462f8f368 /src/core/cpu_manager.h
parent0624c880bd5af45ae9095465e079fa55458515f6 (diff)
downloadyuzu-android-21945ae127480c8332c1110ceada2df4a42a5848.tar.gz
yuzu-android-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:
gpu_barrier->Sync();
}
- void WaitForAndHandleInterrupt();
void Initialize();
void Shutdown();
std::function<void()> GetGuestActivateFunc() {
- return [this] { GuestActivateFunction(); };
+ return [this] { GuestActivate(); };
}
std::function<void()> GetGuestThreadFunc() {
return [this] { GuestThreadFunction(); };
@@ -72,21 +71,19 @@ public:
}
private:
- void GuestActivateFunction();
void GuestThreadFunction();
void IdleThreadFunction();
void ShutdownThreadFunction();
- void MultiCoreGuestActivate();
void MultiCoreRunGuestThread();
- void MultiCoreRunGuestLoop();
+ void MultiCoreRunIdleThread();
- void SingleCoreGuestActivate();
void SingleCoreRunGuestThread();
- void SingleCoreRunGuestLoop();
+ void SingleCoreRunIdleThread();
static void ThreadStart(std::stop_token stop_token, CpuManager& cpu_manager, std::size_t core);
+ void GuestActivate();
void HandleInterrupt();
void ShutdownThread();
void RunThread(std::size_t core);