From 513ace1c0cc5fdf76855117caa7b37110f7da4d6 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Tue, 20 Dec 2016 12:39:42 -0500 Subject: [PATCH] JitIL: Get rid of trivial global jit variable usages --- Source/Core/Core/PowerPC/Jit64IL/JitIL.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Source/Core/Core/PowerPC/Jit64IL/JitIL.cpp b/Source/Core/Core/PowerPC/Jit64IL/JitIL.cpp index 051cf6a5a2..988d8321fd 100644 --- a/Source/Core/Core/PowerPC/Jit64IL/JitIL.cpp +++ b/Source/Core/Core/PowerPC/Jit64IL/JitIL.cpp @@ -354,8 +354,8 @@ void JitIL::Cleanup() { // SPEED HACK: MMCR0/MMCR1 should be checked at run-time, not at compile time. if (MMCR0.Hex || MMCR1.Hex) - ABI_CallFunctionCCC(PowerPC::UpdatePerformanceMonitor, js.downcountAmount, - jit->js.numLoadStoreInst, jit->js.numFloatingPointInst); + ABI_CallFunctionCCC(PowerPC::UpdatePerformanceMonitor, js.downcountAmount, js.numLoadStoreInst, + js.numFloatingPointInst); } void JitIL::WriteExit(u32 destination) @@ -518,8 +518,8 @@ const u8* JitIL::DoJit(u32 em_address, PPCAnalyst::CodeBuffer* code_buf, JitBloc js.blockStart = em_address; js.fifoBytesSinceCheck = 0; js.curBlock = b; - jit->js.numLoadStoreInst = 0; - jit->js.numFloatingPointInst = 0; + js.numLoadStoreInst = 0; + js.numFloatingPointInst = 0; PPCAnalyst::CodeOp* ops = code_buf->codebuffer; @@ -610,7 +610,7 @@ const u8* JitIL::DoJit(u32 em_address, PPCAnalyst::CodeBuffer* code_buf, JitBloc if (type == HLE::HLE_HOOK_REPLACE) { MOV(32, R(EAX), PPCSTATE(npc)); - jit->js.downcountAmount += jit->js.st.numCycles; + js.downcountAmount += js.st.numCycles; WriteExitDestInOpArg(R(EAX)); break; } @@ -625,7 +625,7 @@ const u8* JitIL::DoJit(u32 em_address, PPCAnalyst::CodeBuffer* code_buf, JitBloc ibuild.EmitFPExceptionCheck(ibuild.EmitIntConst(ops[i].address)); } - if (jit->js.fifoWriteAddresses.find(js.compilerPC) != jit->js.fifoWriteAddresses.end()) + if (js.fifoWriteAddresses.find(js.compilerPC) != js.fifoWriteAddresses.end()) { ibuild.EmitExtExceptionCheck(ibuild.EmitIntConst(ops[i].address)); } @@ -648,10 +648,10 @@ const u8* JitIL::DoJit(u32 em_address, PPCAnalyst::CodeBuffer* code_buf, JitBloc } if (opinfo->flags & FL_LOADSTORE) - ++jit->js.numLoadStoreInst; + ++js.numLoadStoreInst; if (opinfo->flags & FL_USE_FPU) - ++jit->js.numFloatingPointInst; + ++js.numFloatingPointInst; } }