JitIL: Get rid of trivial global jit variable usages

This commit is contained in:
Lioncash 2016-12-20 12:39:42 -05:00
parent 66034de20b
commit 513ace1c0c
1 changed files with 8 additions and 8 deletions

View File

@ -354,8 +354,8 @@ void JitIL::Cleanup()
{ {
// SPEED HACK: MMCR0/MMCR1 should be checked at run-time, not at compile time. // SPEED HACK: MMCR0/MMCR1 should be checked at run-time, not at compile time.
if (MMCR0.Hex || MMCR1.Hex) if (MMCR0.Hex || MMCR1.Hex)
ABI_CallFunctionCCC(PowerPC::UpdatePerformanceMonitor, js.downcountAmount, ABI_CallFunctionCCC(PowerPC::UpdatePerformanceMonitor, js.downcountAmount, js.numLoadStoreInst,
jit->js.numLoadStoreInst, jit->js.numFloatingPointInst); js.numFloatingPointInst);
} }
void JitIL::WriteExit(u32 destination) 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.blockStart = em_address;
js.fifoBytesSinceCheck = 0; js.fifoBytesSinceCheck = 0;
js.curBlock = b; js.curBlock = b;
jit->js.numLoadStoreInst = 0; js.numLoadStoreInst = 0;
jit->js.numFloatingPointInst = 0; js.numFloatingPointInst = 0;
PPCAnalyst::CodeOp* ops = code_buf->codebuffer; 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) if (type == HLE::HLE_HOOK_REPLACE)
{ {
MOV(32, R(EAX), PPCSTATE(npc)); MOV(32, R(EAX), PPCSTATE(npc));
jit->js.downcountAmount += jit->js.st.numCycles; js.downcountAmount += js.st.numCycles;
WriteExitDestInOpArg(R(EAX)); WriteExitDestInOpArg(R(EAX));
break; break;
} }
@ -625,7 +625,7 @@ const u8* JitIL::DoJit(u32 em_address, PPCAnalyst::CodeBuffer* code_buf, JitBloc
ibuild.EmitFPExceptionCheck(ibuild.EmitIntConst(ops[i].address)); 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)); 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) if (opinfo->flags & FL_LOADSTORE)
++jit->js.numLoadStoreInst; ++js.numLoadStoreInst;
if (opinfo->flags & FL_USE_FPU) if (opinfo->flags & FL_USE_FPU)
++jit->js.numFloatingPointInst; ++js.numFloatingPointInst;
} }
} }