From 405554e327f398527d14e8a7bb61f1c6df53510a Mon Sep 17 00:00:00 2001 From: Tillmann Karras Date: Fri, 3 Jul 2015 13:05:37 +0200 Subject: [PATCH] Jit64: remove unnecessary indirection --- Source/Core/Core/PowerPC/Jit64/Jit.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Source/Core/Core/PowerPC/Jit64/Jit.cpp b/Source/Core/Core/PowerPC/Jit64/Jit.cpp index 0cfcc614af..08806d3e89 100644 --- a/Source/Core/Core/PowerPC/Jit64/Jit.cpp +++ b/Source/Core/Core/PowerPC/Jit64/Jit.cpp @@ -318,7 +318,7 @@ bool Jit64::Cleanup() if (MMCR0.Hex || MMCR1.Hex) { ABI_PushRegistersAndAdjustStack({}, 0); - ABI_CallFunctionCCC((void *)&PowerPC::UpdatePerformanceMonitor, js.downcountAmount, jit->js.numLoadStoreInst, jit->js.numFloatingPointInst); + ABI_CallFunctionCCC((void *)&PowerPC::UpdatePerformanceMonitor, js.downcountAmount, js.numLoadStoreInst, js.numFloatingPointInst); ABI_PopRegistersAndAdjustStack({}, 0); did_something = true; } @@ -562,8 +562,8 @@ const u8* Jit64::DoJit(u32 em_address, PPCAnalyst::CodeBuffer *code_buf, JitBloc js.blockStart = em_address; js.fifoBytesThisBlock = 0; js.curBlock = b; - jit->js.numLoadStoreInst = 0; - jit->js.numFloatingPointInst = 0; + js.numLoadStoreInst = 0; + js.numFloatingPointInst = 0; PPCAnalyst::CodeOp *ops = code_buf->codebuffer; @@ -675,7 +675,7 @@ const u8* Jit64::DoJit(u32 em_address, PPCAnalyst::CodeBuffer *code_buf, JitBloc } // Gather pipe writes using a non-immediate address are discovered by profiling. - bool gatherPipeIntCheck = jit->js.fifoWriteAddresses.find(ops[i].address) != jit->js.fifoWriteAddresses.end(); + bool gatherPipeIntCheck = js.fifoWriteAddresses.find(ops[i].address) != js.fifoWriteAddresses.end(); // Gather pipe writes using an immediate address are explicitly tracked. if (jo.optimizeGatherPipe && js.fifoBytesThisBlock >= 32) @@ -849,10 +849,10 @@ const u8* Jit64::DoJit(u32 em_address, PPCAnalyst::CodeBuffer *code_buf, JitBloc fpr.StoreFromRegister(j); if (opinfo->flags & FL_LOADSTORE) - ++jit->js.numLoadStoreInst; + ++js.numLoadStoreInst; if (opinfo->flags & FL_USE_FPU) - ++jit->js.numFloatingPointInst; + ++js.numFloatingPointInst; } #if defined(_DEBUG) || defined(DEBUGFAST)