From 85605389d796c8ff7195994a1671c7f0f3b09209 Mon Sep 17 00:00:00 2001 From: Ryan Houdek Date: Tue, 21 Oct 2014 07:48:08 -0500 Subject: [PATCH] Don't enable stepping on ARMv7 JIT core if just in the debugger. Also makes sure we aren't profiling CPU run times unless we are actually profiling. --- Source/Core/Core/PowerPC/JitArm32/Jit.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Source/Core/Core/PowerPC/JitArm32/Jit.cpp b/Source/Core/Core/PowerPC/JitArm32/Jit.cpp index c018aad515..1601117f54 100644 --- a/Source/Core/Core/PowerPC/JitArm32/Jit.cpp +++ b/Source/Core/Core/PowerPC/JitArm32/Jit.cpp @@ -307,8 +307,12 @@ const u8* JitArm::DoJit(u32 em_address, PPCAnalyst::CodeBuffer *code_buf, JitBlo if (SConfig::GetInstance().m_LocalCoreStartupParameter.bEnableDebugging) { // Comment out the following to disable breakpoints (speed-up) - blockSize = 1; - Trace(); + if (!Profiler::g_ProfileBlocks) + { + if (PowerPC::GetState() == PowerPC::CPU_STEPPING) + blockSize = 1; + Trace(); + } } if (em_address == 0) @@ -444,7 +448,7 @@ const u8* JitArm::DoJit(u32 em_address, PPCAnalyst::CodeBuffer *code_buf, JitBlo POP(4, R0, R1, R2, R3); } - if (SConfig::GetInstance().m_LocalCoreStartupParameter.bEnableDebugging) + if (Profiler::g_ProfileBlocks) { // Add run count static const u64 One = 1;