summaryrefslogtreecommitdiffstats
path: root/src/core/hle
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2023-06-08 03:38:28 +0200
committerMorph <39850852+Morph1984@users.noreply.github.com>2023-06-08 03:44:42 +0200
commit2e1e7254436b032f133372c76d9484aa756d56df (patch)
treece55efc11d5dee53a87532b77ce85d3e0d2b2a76 /src/core/hle
parent(wall, native)_clock: Add GetGPUTick (diff)
downloadyuzu-2e1e7254436b032f133372c76d9484aa756d56df.tar
yuzu-2e1e7254436b032f133372c76d9484aa756d56df.tar.gz
yuzu-2e1e7254436b032f133372c76d9484aa756d56df.tar.bz2
yuzu-2e1e7254436b032f133372c76d9484aa756d56df.tar.lz
yuzu-2e1e7254436b032f133372c76d9484aa756d56df.tar.xz
yuzu-2e1e7254436b032f133372c76d9484aa756d56df.tar.zst
yuzu-2e1e7254436b032f133372c76d9484aa756d56df.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/kernel/svc/svc_tick.cpp10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/core/hle/kernel/svc/svc_tick.cpp b/src/core/hle/kernel/svc/svc_tick.cpp
index 561336482..7dd7c6e51 100644
--- a/src/core/hle/kernel/svc/svc_tick.cpp
+++ b/src/core/hle/kernel/svc/svc_tick.cpp
@@ -12,16 +12,8 @@ namespace Kernel::Svc {
int64_t GetSystemTick(Core::System& system) {
LOG_TRACE(Kernel_SVC, "called");
- auto& core_timing = system.CoreTiming();
-
// Returns the value of cntpct_el0 (https://switchbrew.org/wiki/SVC#svcGetSystemTick)
- const u64 result{core_timing.GetClockTicks()};
-
- if (!system.Kernel().IsMulticore()) {
- core_timing.AddTicks(400U);
- }
-
- return static_cast<int64_t>(result);
+ return static_cast<int64_t>(system.CoreTiming().GetClockTicks());
}
int64_t GetSystemTick64(Core::System& system) {