diff options
Diffstat (limited to '')
| -rw-r--r-- | src/common/x64/native_clock.cpp | 2 | ||||
| -rw-r--r-- | src/common/x64/native_clock.h | 5 |
2 files changed, 1 insertions, 6 deletions
diff --git a/src/common/x64/native_clock.cpp b/src/common/x64/native_clock.cpp index 0b89f9ed2..488c8c905 100644 --- a/src/common/x64/native_clock.cpp +++ b/src/common/x64/native_clock.cpp | |||
| @@ -90,7 +90,7 @@ u64 NativeClock::GetRTSC() { | |||
| 90 | } while (!time_point.compare_exchange_weak( | 90 | } while (!time_point.compare_exchange_weak( |
| 91 | current_time_point, new_time_point, std::memory_order_release, std::memory_order_acquire)); | 91 | current_time_point, new_time_point, std::memory_order_release, std::memory_order_acquire)); |
| 92 | /// The clock cannot be more precise than the guest timer, remove the lower bits | 92 | /// The clock cannot be more precise than the guest timer, remove the lower bits |
| 93 | return new_time_point.accumulated_ticks & inaccuracy_mask; | 93 | return new_time_point.accumulated_ticks; |
| 94 | } | 94 | } |
| 95 | 95 | ||
| 96 | void NativeClock::Pause(bool is_paused) { | 96 | void NativeClock::Pause(bool is_paused) { |
diff --git a/src/common/x64/native_clock.h b/src/common/x64/native_clock.h index e57446cb9..046cea095 100644 --- a/src/common/x64/native_clock.h +++ b/src/common/x64/native_clock.h | |||
| @@ -34,11 +34,6 @@ private: | |||
| 34 | u64 accumulated_ticks{}; | 34 | u64 accumulated_ticks{}; |
| 35 | }; | 35 | }; |
| 36 | 36 | ||
| 37 | /// value used to reduce the native clocks accuracy as some apss rely on | ||
| 38 | /// undefined behavior where the level of accuracy in the clock shouldn't | ||
| 39 | /// be higher. | ||
| 40 | static constexpr u64 inaccuracy_mask = ~(UINT64_C(0x400) - 1); | ||
| 41 | |||
| 42 | std::atomic<TimePoint> time_point; | 37 | std::atomic<TimePoint> time_point; |
| 43 | // factors | 38 | // factors |
| 44 | u64 clock_rtsc_factor{}; | 39 | u64 clock_rtsc_factor{}; |