Skip to content
Snippets Groups Projects
Unverified Commit 11099dda authored by Morph's avatar Morph Committed by GitHub
Browse files

Merge pull request #7791 from german77/wall_clock

wall_clock: Use standard wall clock if rtsc frequency is too low
parents 64a68ccb e4c63d43
No related branches found
No related tags found
No related merge requests found
......@@ -72,7 +72,9 @@ std::unique_ptr<WallClock> CreateBestMatchingClock(u32 emulated_cpu_frequency,
if (caps.invariant_tsc) {
rtsc_frequency = EstimateRDTSCFrequency();
}
if (rtsc_frequency == 0) {
// Fallback to StandardWallClock if rtsc period is higher than a nano second
if (rtsc_frequency <= 1000000000) {
return std::make_unique<StandardWallClock>(emulated_cpu_frequency,
emulated_clock_frequency);
} else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment