Merge pull request #11812 from lioncash/jitacc
JitInterface: Remove global system accessor
This commit is contained in:
commit
c6510f2bf4
|
@ -59,22 +59,20 @@ void JitInterface::DoState(PointerWrap& p)
|
||||||
|
|
||||||
CPUCoreBase* JitInterface::InitJitCore(PowerPC::CPUCore core)
|
CPUCoreBase* JitInterface::InitJitCore(PowerPC::CPUCore core)
|
||||||
{
|
{
|
||||||
auto& system = Core::System::GetInstance();
|
|
||||||
|
|
||||||
switch (core)
|
switch (core)
|
||||||
{
|
{
|
||||||
#if _M_X86
|
#if _M_X86
|
||||||
case PowerPC::CPUCore::JIT64:
|
case PowerPC::CPUCore::JIT64:
|
||||||
m_jit = std::make_unique<Jit64>(system);
|
m_jit = std::make_unique<Jit64>(m_system);
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
#if _M_ARM_64
|
#if _M_ARM_64
|
||||||
case PowerPC::CPUCore::JITARM64:
|
case PowerPC::CPUCore::JITARM64:
|
||||||
m_jit = std::make_unique<JitArm64>(system);
|
m_jit = std::make_unique<JitArm64>(m_system);
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
case PowerPC::CPUCore::CachedInterpreter:
|
case PowerPC::CPUCore::CachedInterpreter:
|
||||||
m_jit = std::make_unique<CachedInterpreter>(system);
|
m_jit = std::make_unique<CachedInterpreter>(m_system);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in New Issue