From 15244b7679ecf886f66447c2cb92a6038f36c32b Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Fri, 22 Jun 2018 21:26:45 -0700 Subject: [PATCH] CoreTiming: Reset CPU mhz on reset. Oops - this wasn't being reset, and stayed at the previous value. See #5530. --- Core/CoreTiming.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Core/CoreTiming.cpp b/Core/CoreTiming.cpp index b3f9a9587b..150f5599ea 100644 --- a/Core/CoreTiming.cpp +++ b/Core/CoreTiming.cpp @@ -34,6 +34,7 @@ #include "Core/Reporting.h" #include "Common/ChunkFile.h" +static const int initialHz = 222000000; int CPU_HZ = 222000000; // is this really necessary? @@ -211,6 +212,7 @@ void Init() lastGlobalTimeUs = 0; hasTsEvents = 0; mhzChangeCallbacks.clear(); + CPU_HZ = initialHz; } void Shutdown()