summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorLioncash <mai.iam2048@gmail.com>2023-05-02 15:21:56 -0400
committerLioncash <mai.iam2048@gmail.com>2023-05-02 15:21:58 -0400
commit56775e49016bbc18eefcb4b2ba2f820ff91297e8 (patch)
treedf1ae02a522c7bb75abcef01abae7dc0d81c6df7 /Source/Core
parent0b9b09ad3287445e23068b4d5a4cbd018f399515 (diff)
JitInterface: Remove global system accessor
We can use JitInterface's system member variable to avoid needing this
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/Core/PowerPC/JitInterface.cpp8
1 files 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<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: