summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/svc.cpp
diff options
context:
space:
mode:
authorLiam <byteslice@airmail.cc>2022-06-27 00:52:16 +0200
committerLiam <byteslice@airmail.cc>2022-07-15 04:47:18 +0200
commit0624c880bd5af45ae9095465e079fa55458515f6 (patch)
treea8b9f3adf516af30cad021fc32f8669426946cd5 /src/core/hle/kernel/svc.cpp
parentMerge pull request #8540 from lat9nq/copy-nv-ffmpeg (diff)
downloadyuzu-0624c880bd5af45ae9095465e079fa55458515f6.tar
yuzu-0624c880bd5af45ae9095465e079fa55458515f6.tar.gz
yuzu-0624c880bd5af45ae9095465e079fa55458515f6.tar.bz2
yuzu-0624c880bd5af45ae9095465e079fa55458515f6.tar.lz
yuzu-0624c880bd5af45ae9095465e079fa55458515f6.tar.xz
yuzu-0624c880bd5af45ae9095465e079fa55458515f6.tar.zst
yuzu-0624c880bd5af45ae9095465e079fa55458515f6.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/kernel/svc.cpp7
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