JitInterface::ClearCache: Modernize With CPUThreadGuard

It is recommended to view this diff with whitespace changes hidden.
This commit is contained in:
mitaclaw
2024-03-04 19:36:26 -08:00
parent 8f6fd912f7
commit 4568446398
6 changed files with 52 additions and 53 deletions

View File

@ -1753,7 +1753,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()