diff options
| author | bunnei <bunneidev@gmail.com> | 2021-08-18 15:42:46 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-18 15:42:46 -0700 |
| commit | 7a90ad5238bde5c677e9a1b328b4570f3c12621f (patch) | |
| tree | b4f406cbf0f230cf9064040992ce3ef8bf54e5a7 /src/core/hle/kernel/k_condition_variable.cpp | |
| parent | 81f7914b190aa10cb5e38a3eadfc4bfcc75cefb4 (diff) | |
| parent | b2f859f47ca81f8faff468e7d328861f0ca21409 (diff) | |
Merge pull request #6832 from bunnei/scheduler-improvements
kernel: Various improvements to scheduler
Diffstat (limited to 'src/core/hle/kernel/k_condition_variable.cpp')
| -rw-r--r-- | src/core/hle/kernel/k_condition_variable.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/kernel/k_condition_variable.cpp b/src/core/hle/kernel/k_condition_variable.cpp index ef14ad1d2d..4174f35fd5 100644 --- a/src/core/hle/kernel/k_condition_variable.cpp +++ b/src/core/hle/kernel/k_condition_variable.cpp @@ -35,7 +35,7 @@ bool WriteToUser(Core::System& system, VAddr address, const u32* p) { bool UpdateLockAtomic(Core::System& system, u32* out, VAddr address, u32 if_zero, u32 new_orr_mask) { auto& monitor = system.Monitor(); - const auto current_core = system.CurrentCoreIndex(); + const auto current_core = system.Kernel().CurrentPhysicalCoreIndex(); // Load the value from the address. const auto expected = monitor.ExclusiveRead32(current_core, address); |
