summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/kernel.cpp
diff options
context:
space:
mode:
authorGravatar bunnei2022-09-11 00:06:41 -0700
committerGravatar bunnei2022-10-18 19:13:35 -0700
commit8d4e026d0575fe705957d6f17dc90a57f1bc0bf7 (patch)
tree3e9615be9c7a08de8bfa94263eb8cb86e8651966 /src/core/hle/kernel/kernel.cpp
parentcore: hle: kernel: k_page_table: Impl. LockForUn/MapDeviceAddressSpace, cleanup. (diff)
downloadyuzu-8d4e026d0575fe705957d6f17dc90a57f1bc0bf7.tar.gz
yuzu-8d4e026d0575fe705957d6f17dc90a57f1bc0bf7.tar.xz
yuzu-8d4e026d0575fe705957d6f17dc90a57f1bc0bf7.zip
core: hle: kernel: Remove junk.
Diffstat (limited to 'src/core/hle/kernel/kernel.cpp')
-rw-r--r--src/core/hle/kernel/kernel.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/core/hle/kernel/kernel.cpp b/src/core/hle/kernel/kernel.cpp
index d57239472..b6bbd4984 100644
--- a/src/core/hle/kernel/kernel.cpp
+++ b/src/core/hle/kernel/kernel.cpp
@@ -108,10 +108,6 @@ struct KernelCore::Impl {
108 next_user_process_id = KProcess::ProcessIDMin; 108 next_user_process_id = KProcess::ProcessIDMin;
109 next_thread_id = 1; 109 next_thread_id = 1;
110 110
111 for (auto& core : cores) {
112 core = nullptr;
113 }
114
115 global_handle_table->Finalize(); 111 global_handle_table->Finalize();
116 global_handle_table.reset(); 112 global_handle_table.reset();
117 113
@@ -365,11 +361,6 @@ struct KernelCore::Impl {
365 static inline thread_local KThread* current_thread{nullptr}; 361 static inline thread_local KThread* current_thread{nullptr};
366 362
367 KThread* GetCurrentEmuThread() { 363 KThread* GetCurrentEmuThread() {
368 // If we are shutting down the kernel, none of this is relevant anymore.
369 if (IsShuttingDown()) {
370 return {};
371 }
372
373 const auto thread_id = GetCurrentHostThreadID(); 364 const auto thread_id = GetCurrentHostThreadID();
374 if (thread_id >= Core::Hardware::NUM_CPU_CORES) { 365 if (thread_id >= Core::Hardware::NUM_CPU_CORES) {
375 return GetHostDummyThread(); 366 return GetHostDummyThread();