diff options
| author | 2021-01-10 14:29:02 -0800 | |
|---|---|---|
| committer | 2021-01-11 14:23:17 -0800 | |
| commit | 03dfc8d8e74910d447b755e00848a623ec65cd93 (patch) | |
| tree | 56a80760bd0ba8ecd85dc8d9f09fb9e2068c91d4 /src/core/hle/kernel/svc.cpp | |
| parent | yuzu: debugger: wait_tree: Handle unknown ThreadState. (diff) | |
| download | yuzu-03dfc8d8e74910d447b755e00848a623ec65cd93.tar.gz yuzu-03dfc8d8e74910d447b755e00848a623ec65cd93.tar.xz yuzu-03dfc8d8e74910d447b755e00848a623ec65cd93.zip | |
hle: kernel: thread: Preserve thread wait reason for debugging only.
- This is decoupled from core functionality and used for debugging only.
Diffstat (limited to 'src/core/hle/kernel/svc.cpp')
| -rw-r--r-- | src/core/hle/kernel/svc.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/hle/kernel/svc.cpp b/src/core/hle/kernel/svc.cpp index 99bb4ea20..cc8b661af 100644 --- a/src/core/hle/kernel/svc.cpp +++ b/src/core/hle/kernel/svc.cpp | |||
| @@ -347,6 +347,7 @@ static ResultCode SendSyncRequest(Core::System& system, Handle handle) { | |||
| 347 | { | 347 | { |
| 348 | KScopedSchedulerLock lock(kernel); | 348 | KScopedSchedulerLock lock(kernel); |
| 349 | thread->SetState(ThreadState::Waiting); | 349 | thread->SetState(ThreadState::Waiting); |
| 350 | thread->SetWaitReasonForDebugging(ThreadWaitReasonForDebugging::IPC); | ||
| 350 | session->SendSyncRequest(SharedFrom(thread), system.Memory(), system.CoreTiming()); | 351 | session->SendSyncRequest(SharedFrom(thread), system.Memory(), system.CoreTiming()); |
| 351 | } | 352 | } |
| 352 | 353 | ||