Merge pull request #11812 from lioncash/jitacc

JitInterface: Remove global system accessor
This commit is contained in:
JosJuice 2023-05-03 17:42:48 +02:00 committed by GitHub
commit c6510f2bf4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 5 deletions

View File

@ -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: