Merge pull request #1314 from FioraAeterna/fixprofiler

JIT: fix profiler on non-Windows OSs
This commit is contained in:
skidau 2014-10-20 14:37:32 +11:00
commit a4be65094f
1 changed files with 2 additions and 1 deletions

View File

@ -568,7 +568,8 @@ const u8* Jit64::DoJit(u32 em_address, PPCAnalyst::CodeBuffer *code_buf, JitBloc
// Conditionally add profiling code.
if (Profiler::g_ProfileBlocks)
{
ADD(32, M(&b->runCount), Imm8(1));
MOV(64, R(RSCRATCH), Imm64((u64)&b->runCount));
ADD(32, MatR(RSCRATCH), Imm8(1));
#ifdef _WIN32
b->ticCounter = 0;
b->ticStart = 0;