From 56775e49016bbc18eefcb4b2ba2f820ff91297e8 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Tue, 2 May 2023 15:21:56 -0400 Subject: [PATCH] JitInterface: Remove global system accessor We can use JitInterface's system member variable to avoid needing this --- Source/Core/Core/PowerPC/JitInterface.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Source/Core/Core/PowerPC/JitInterface.cpp b/Source/Core/Core/PowerPC/JitInterface.cpp index 7ca17cbffc..5e369067f6 100644 --- a/Source/Core/Core/PowerPC/JitInterface.cpp +++ b/Source/Core/Core/PowerPC/JitInterface.cpp @@ -59,22 +59,20 @@ void JitInterface::DoState(PointerWrap& p) CPUCoreBase* JitInterface::InitJitCore(PowerPC::CPUCore core) { - auto& system = Core::System::GetInstance(); - switch (core) { #if _M_X86 case PowerPC::CPUCore::JIT64: - m_jit = std::make_unique(system); + m_jit = std::make_unique(m_system); break; #endif #if _M_ARM_64 case PowerPC::CPUCore::JITARM64: - m_jit = std::make_unique(system); + m_jit = std::make_unique(m_system); break; #endif case PowerPC::CPUCore::CachedInterpreter: - m_jit = std::make_unique(system); + m_jit = std::make_unique(m_system); break; default: