diff options
author | bunnei <bunneidev@gmail.com> | 2022-04-11 01:51:42 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2022-04-12 06:13:40 +0200 |
commit | ae38b8bf5eb8baed79b70974fb93705db6495807 (patch) | |
tree | f4be3facdce073323c67d9159935c82507ab3eff /src/core/hle/kernel | |
parent | hle: kernel: Use std::mutex instead of spin locks for most kernel locking. (diff) | |
download | yuzu-ae38b8bf5eb8baed79b70974fb93705db6495807.tar yuzu-ae38b8bf5eb8baed79b70974fb93705db6495807.tar.gz yuzu-ae38b8bf5eb8baed79b70974fb93705db6495807.tar.bz2 yuzu-ae38b8bf5eb8baed79b70974fb93705db6495807.tar.lz yuzu-ae38b8bf5eb8baed79b70974fb93705db6495807.tar.xz yuzu-ae38b8bf5eb8baed79b70974fb93705db6495807.tar.zst yuzu-ae38b8bf5eb8baed79b70974fb93705db6495807.zip |
Diffstat (limited to 'src/core/hle/kernel')
-rw-r--r-- | src/core/hle/kernel/k_spin_lock.cpp | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/src/core/hle/kernel/k_spin_lock.cpp b/src/core/hle/kernel/k_spin_lock.cpp index 4df2e5c1a..527ff0f9f 100644 --- a/src/core/hle/kernel/k_spin_lock.cpp +++ b/src/core/hle/kernel/k_spin_lock.cpp @@ -4,34 +4,6 @@ #include "core/hle/kernel/k_spin_lock.h" -#if _MSC_VER -#include <intrin.h> -#if _M_AMD64 -#define __x86_64__ 1 -#endif -#if _M_ARM64 -#define __aarch64__ 1 -#endif -#else -#if __x86_64__ -#include <xmmintrin.h> -#endif -#endif - -namespace { - -void ThreadPause() { -#if __x86_64__ - _mm_pause(); -#elif __aarch64__ && _MSC_VER - __yield(); -#elif __aarch64__ - asm("yield"); -#endif -} - -} // namespace - namespace Kernel { void KSpinLock::Lock() { |