mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-02 22:29:21 +00:00
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.
This commit is contained in:
parent
536b8d6695
commit
99169eb620
1 changed files with 2 additions and 1 deletions
|
@ -568,7 +568,8 @@ const u8* Jit64::DoJit(u32 em_address, PPCAnalyst::CodeBuffer *code_buf, JitBloc
|
||||||
// Conditionally add profiling code.
|
// Conditionally add profiling code.
|
||||||
if (Profiler::g_ProfileBlocks)
|
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
|
#ifdef _WIN32
|
||||||
b->ticCounter = 0;
|
b->ticCounter = 0;
|
||||||
b->ticStart = 0;
|
b->ticStart = 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue