summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/thread.cpp
diff options
context:
space:
mode:
authorDavid <25727384+ogniK5377@users.noreply.github.com>2020-07-16 15:02:04 +0200
committerGitHub <noreply@github.com>2020-07-16 15:02:04 +0200
commit0648e023eac31b92c1df1d33a575b9c5266cfdaa (patch)
tree553beed5770ec50795667bc5ab82c16ced10cc3f /src/core/hle/kernel/thread.cpp
parentMerge pull request #4249 from Morph1984/delete-update-aoc-on-overwrite (diff)
parentkernel/process: Move name and system context to the bottom of the member list (diff)
downloadyuzu-0648e023eac31b92c1df1d33a575b9c5266cfdaa.tar
yuzu-0648e023eac31b92c1df1d33a575b9c5266cfdaa.tar.gz
yuzu-0648e023eac31b92c1df1d33a575b9c5266cfdaa.tar.bz2
yuzu-0648e023eac31b92c1df1d33a575b9c5266cfdaa.tar.lz
yuzu-0648e023eac31b92c1df1d33a575b9c5266cfdaa.tar.xz
yuzu-0648e023eac31b92c1df1d33a575b9c5266cfdaa.tar.zst
yuzu-0648e023eac31b92c1df1d33a575b9c5266cfdaa.zip
Diffstat (limited to 'src/core/hle/kernel/thread.cpp')
-rw-r--r--src/core/hle/kernel/thread.cpp22
1 files changed, 5 insertions, 17 deletions
diff --git a/src/core/hle/kernel/thread.cpp b/src/core/hle/kernel/thread.cpp
index 2b1092697..67148fa6d 100644
--- a/src/core/hle/kernel/thread.cpp
+++ b/src/core/hle/kernel/thread.cpp
@@ -13,16 +13,8 @@
#include "common/logging/log.h"
#include "common/thread_queue_list.h"
#include "core/arm/arm_interface.h"
-#ifdef ARCHITECTURE_x86_64
-#include "core/arm/dynarmic/arm_dynarmic_32.h"
-#include "core/arm/dynarmic/arm_dynarmic_64.h"
-#endif
-#include "core/arm/cpu_interrupt_handler.h"
-#include "core/arm/exclusive_monitor.h"
#include "core/arm/unicorn/arm_unicorn.h"
#include "core/core.h"
-#include "core/core_timing.h"
-#include "core/core_timing_util.h"
#include "core/cpu_manager.h"
#include "core/hardware_properties.h"
#include "core/hle/kernel/errors.h"
@@ -36,6 +28,11 @@
#include "core/hle/result.h"
#include "core/memory.h"
+#ifdef ARCHITECTURE_x86_64
+#include "core/arm/dynarmic/arm_dynarmic_32.h"
+#include "core/arm/dynarmic/arm_dynarmic_64.h"
+#endif
+
namespace Kernel {
bool Thread::ShouldWait(const Thread* thread) const {
@@ -540,13 +537,4 @@ ResultCode Thread::SetCoreAndAffinityMask(s32 new_core, u64 new_affinity_mask) {
return RESULT_SUCCESS;
}
-////////////////////////////////////////////////////////////////////////////////////////////////////
-
-/**
- * Gets the current thread
- */
-Thread* GetCurrentThread() {
- return Core::System::GetInstance().CurrentScheduler().GetCurrentThread();
-}
-
} // namespace Kernel