From d557c913e83540db154ab786eb6585b22608ff2d Mon Sep 17 00:00:00 2001 From: skidau Date: Sun, 29 Apr 2012 00:10:20 +1000 Subject: [PATCH] Reset the performance counters at the start of the each block. --- Source/Core/Core/Src/PowerPC/Jit64/Jit.cpp | 2 ++ Source/Core/Core/Src/PowerPC/Jit64IL/JitIL.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/Source/Core/Core/Src/PowerPC/Jit64/Jit.cpp b/Source/Core/Core/Src/PowerPC/Jit64/Jit.cpp index 5b58807a8c..6cc4fd83b4 100644 --- a/Source/Core/Core/Src/PowerPC/Jit64/Jit.cpp +++ b/Source/Core/Core/Src/PowerPC/Jit64/Jit.cpp @@ -477,6 +477,8 @@ const u8* Jit64::DoJit(u32 em_address, PPCAnalyst::CodeBuffer *code_buf, JitBloc js.curBlock = b; js.block_flags = 0; js.cancel = false; + jit->js.numLoadStoreInst = 0; + jit->js.numFloatingPointInst = 0; // Analyze the block, collect all instructions it is made of (including inlining, // if that is enabled), reorder instructions for optimal performance, and join joinable instructions. diff --git a/Source/Core/Core/Src/PowerPC/Jit64IL/JitIL.cpp b/Source/Core/Core/Src/PowerPC/Jit64IL/JitIL.cpp index 56e775050d..c9d4e44e71 100644 --- a/Source/Core/Core/Src/PowerPC/Jit64IL/JitIL.cpp +++ b/Source/Core/Core/Src/PowerPC/Jit64IL/JitIL.cpp @@ -551,6 +551,8 @@ const u8* JitIL::DoJit(u32 em_address, PPCAnalyst::CodeBuffer *code_buf, JitBloc js.fifoBytesThisBlock = 0; js.curBlock = b; js.cancel = false; + jit->js.numLoadStoreInst = 0; + jit->js.numFloatingPointInst = 0; // Analyze the block, collect all instructions it is made of (including inlining, // if that is enabled), reorder instructions for optimal performance, and join joinable instructions.