From 99169eb6207e27361670700cefa59d59b626ef53 Mon Sep 17 00:00:00 2001 From: Fiora Date: Fri, 17 Oct 2014 16:48:09 -0700 Subject: [PATCH] JIT: fix profiler on non-Windows OSs Still doesn't support timing code (since that's Windows-only), but run counts will at least work without crashing. --- Source/Core/Core/PowerPC/Jit64/Jit.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/Core/Core/PowerPC/Jit64/Jit.cpp b/Source/Core/Core/PowerPC/Jit64/Jit.cpp index e9b7333ed2..99fe0fc382 100644 --- a/Source/Core/Core/PowerPC/Jit64/Jit.cpp +++ b/Source/Core/Core/PowerPC/Jit64/Jit.cpp @@ -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;