Merge pull request #12620 from mitaclaw/jit-interface-cpu-thread-guard

JitInterface::ClearCache: Modernize With CPUThreadGuard
This commit is contained in:
Admiral H. Curtiss 2024-03-22 04:17:33 +01:00 committed by GitHub
commit f814dc58b5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 52 additions and 53 deletions

View file

@ -1752,7 +1752,8 @@ void MenuBar::PatchHLEFunctions()
void MenuBar::ClearCache()
{
Core::RunAsCPUThread([] { Core::System::GetInstance().GetJitInterface().ClearCache(); });
auto& system = Core::System::GetInstance();
system.GetJitInterface().ClearCache(Core::CPUThreadGuard{system});
}
void MenuBar::LogInstructions()