Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #11812 from lioncash/jitacc
JitInterface: Remove global system accessor
  • Loading branch information
JosJuice committed May 3, 2023
2 parents 0b9b09a + 56775e4 commit c6510f2
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Source/Core/Core/PowerPC/JitInterface.cpp
Expand Up @@ -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<Jit64>(system);
m_jit = std::make_unique<Jit64>(m_system);
break;
#endif
#if _M_ARM_64
case PowerPC::CPUCore::JITARM64:
m_jit = std::make_unique<JitArm64>(system);
m_jit = std::make_unique<JitArm64>(m_system);
break;
#endif
case PowerPC::CPUCore::CachedInterpreter:
m_jit = std::make_unique<CachedInterpreter>(system);
m_jit = std::make_unique<CachedInterpreter>(m_system);
break;

default:
Expand Down

0 comments on commit c6510f2

Please sign in to comment.