diff options
author | bunnei <bunneidev@gmail.com> | 2021-01-10 23:29:02 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2021-01-11 23:23:17 +0100 |
commit | 03dfc8d8e74910d447b755e00848a623ec65cd93 (patch) | |
tree | 56a80760bd0ba8ecd85dc8d9f09fb9e2068c91d4 /src/core/hle/kernel/k_address_arbiter.cpp | |
parent | yuzu: debugger: wait_tree: Handle unknown ThreadState. (diff) | |
download | yuzu-03dfc8d8e74910d447b755e00848a623ec65cd93.tar yuzu-03dfc8d8e74910d447b755e00848a623ec65cd93.tar.gz yuzu-03dfc8d8e74910d447b755e00848a623ec65cd93.tar.bz2 yuzu-03dfc8d8e74910d447b755e00848a623ec65cd93.tar.lz yuzu-03dfc8d8e74910d447b755e00848a623ec65cd93.tar.xz yuzu-03dfc8d8e74910d447b755e00848a623ec65cd93.tar.zst yuzu-03dfc8d8e74910d447b755e00848a623ec65cd93.zip |
Diffstat (limited to 'src/core/hle/kernel/k_address_arbiter.cpp')
-rw-r--r-- | src/core/hle/kernel/k_address_arbiter.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/hle/kernel/k_address_arbiter.cpp b/src/core/hle/kernel/k_address_arbiter.cpp index 7b712d31a..d9e702f13 100644 --- a/src/core/hle/kernel/k_address_arbiter.cpp +++ b/src/core/hle/kernel/k_address_arbiter.cpp @@ -276,6 +276,7 @@ ResultCode KAddressArbiter::WaitIfLessThan(VAddr addr, s32 value, bool decrement cur_thread->SetAddressArbiter(std::addressof(thread_tree), addr); thread_tree.insert(*cur_thread); cur_thread->SetState(ThreadState::Waiting); + cur_thread->SetWaitReasonForDebugging(ThreadWaitReasonForDebugging::Arbitration); } // Cancel the timer wait. @@ -339,6 +340,7 @@ ResultCode KAddressArbiter::WaitIfEqual(VAddr addr, s32 value, s64 timeout) { cur_thread->SetAddressArbiter(std::addressof(thread_tree), addr); thread_tree.insert(*cur_thread); cur_thread->SetState(ThreadState::Waiting); + cur_thread->SetWaitReasonForDebugging(ThreadWaitReasonForDebugging::Arbitration); } // Cancel the timer wait. |