diff options
author | Morph <39850852+Morph1984@users.noreply.github.com> | 2022-07-25 18:00:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-25 18:00:31 +0200 |
commit | 591d1f1b09d2af6e432d4fb27af3321919758c0c (patch) | |
tree | 5b0efec541b5db56b7d32e6c90f1b2587c71611d /src/core/hle/kernel/svc.cpp | |
parent | Merge pull request #8484 from german77/irs_release (diff) | |
parent | kernel: Ensure all uses of disable_count are balanced (diff) | |
download | yuzu-591d1f1b09d2af6e432d4fb27af3321919758c0c.tar yuzu-591d1f1b09d2af6e432d4fb27af3321919758c0c.tar.gz yuzu-591d1f1b09d2af6e432d4fb27af3321919758c0c.tar.bz2 yuzu-591d1f1b09d2af6e432d4fb27af3321919758c0c.tar.lz yuzu-591d1f1b09d2af6e432d4fb27af3321919758c0c.tar.xz yuzu-591d1f1b09d2af6e432d4fb27af3321919758c0c.tar.zst yuzu-591d1f1b09d2af6e432d4fb27af3321919758c0c.zip |
Diffstat (limited to 'src/core/hle/kernel/svc.cpp')
-rw-r--r-- | src/core/hle/kernel/svc.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/core/hle/kernel/svc.cpp b/src/core/hle/kernel/svc.cpp index 8655506b0..27e5a805d 100644 --- a/src/core/hle/kernel/svc.cpp +++ b/src/core/hle/kernel/svc.cpp @@ -887,7 +887,7 @@ static Result GetInfo(Core::System& system, u64* result, u64 info_id, Handle han const auto* const current_thread = GetCurrentThreadPointer(system.Kernel()); const bool same_thread = current_thread == thread.GetPointerUnsafe(); - const u64 prev_ctx_ticks = scheduler.GetLastContextSwitchTicks(); + const u64 prev_ctx_ticks = scheduler.GetLastContextSwitchTime(); u64 out_ticks = 0; if (same_thread && info_sub_id == 0xFFFFFFFFFFFFFFFF) { const u64 thread_ticks = current_thread->GetCpuTime(); @@ -3026,11 +3026,6 @@ void Call(Core::System& system, u32 immediate) { } kernel.ExitSVCProfile(); - - if (!thread->IsCallingSvc()) { - auto* host_context = thread->GetHostContext().get(); - host_context->Rewind(); - } } } // namespace Kernel::Svc |