JitInterface: Remove global system accessor
We can use JitInterface's system member variable to avoid needing this
This commit is contained in:
parent
0b9b09ad32
commit
56775e4901
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue