diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2020-03-15 20:54:40 +0100 |
---|---|---|
committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2020-06-27 17:35:50 +0200 |
commit | 25565dffd588006aace7530486e71ff318dc5550 (patch) | |
tree | e30556e18f3dae60ea6cb8d32b84fbcc42860d24 /src/core/hle/kernel/svc.cpp | |
parent | CPU_Manager: Correct stopping on SingleCore. (diff) | |
download | yuzu-25565dffd588006aace7530486e71ff318dc5550.tar yuzu-25565dffd588006aace7530486e71ff318dc5550.tar.gz yuzu-25565dffd588006aace7530486e71ff318dc5550.tar.bz2 yuzu-25565dffd588006aace7530486e71ff318dc5550.tar.lz yuzu-25565dffd588006aace7530486e71ff318dc5550.tar.xz yuzu-25565dffd588006aace7530486e71ff318dc5550.tar.zst yuzu-25565dffd588006aace7530486e71ff318dc5550.zip |
Diffstat (limited to 'src/core/hle/kernel/svc.cpp')
-rw-r--r-- | src/core/hle/kernel/svc.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/core/hle/kernel/svc.cpp b/src/core/hle/kernel/svc.cpp index 9b9f9402e..36e9c48f9 100644 --- a/src/core/hle/kernel/svc.cpp +++ b/src/core/hle/kernel/svc.cpp @@ -1653,10 +1653,8 @@ static void SignalProcessWideKey(Core::System& system, VAddr condition_variable_ u32 update_val = 0; const VAddr mutex_address = thread->GetMutexWaitAddress(); do { - monitor.SetExclusive32(current_core, mutex_address); - // If the mutex is not yet acquired, acquire it. - mutex_val = memory.Read32(mutex_address); + mutex_val = monitor.ExclusiveRead32(current_core, mutex_address); if (mutex_val != 0) { update_val = mutex_val | Mutex::MutexHasWaitersFlag; |