mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-27 08:15:33 +01:00
Jit64: Remove breakpoint check from JitAsm.cpp
The breakpoint check in Jit.cpp makes it redundant. Normally this redundant check doesn't cause any issues, but if you create a breakpoint and enable logging without breaking, you get two log messages if the breakpoint is at the beginning of a block. See https://bugs.dolphin-emu.org/issues/13044. This is also a tiny performance improvement for when debugging is active, since we no longer check for breakpoints for blocks that never had any breakpoints to begin with.
This commit is contained in:
parent
3af74d82a0
commit
b9aed428e8
@ -91,16 +91,9 @@ void Jit64AsmRoutineManager::Generate()
|
|||||||
|
|
||||||
if (enable_debugging)
|
if (enable_debugging)
|
||||||
{
|
{
|
||||||
MOV(64, R(RSCRATCH), ImmPtr(CPU::GetStatePtr()));
|
|
||||||
TEST(32, MatR(RSCRATCH), Imm32(static_cast<u32>(CPU::State::Stepping)));
|
|
||||||
FixupBranch notStepping = J_CC(CC_Z);
|
|
||||||
ABI_PushRegistersAndAdjustStack({}, 0);
|
|
||||||
ABI_CallFunction(PowerPC::CheckBreakPoints);
|
|
||||||
ABI_PopRegistersAndAdjustStack({}, 0);
|
|
||||||
MOV(64, R(RSCRATCH), ImmPtr(CPU::GetStatePtr()));
|
MOV(64, R(RSCRATCH), ImmPtr(CPU::GetStatePtr()));
|
||||||
TEST(32, MatR(RSCRATCH), Imm32(0xFFFFFFFF));
|
TEST(32, MatR(RSCRATCH), Imm32(0xFFFFFFFF));
|
||||||
dbg_exit = J_CC(CC_NZ, true);
|
dbg_exit = J_CC(CC_NZ, true);
|
||||||
SetJumpTarget(notStepping);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
SetJumpTarget(skipToRealDispatch);
|
SetJumpTarget(skipToRealDispatch);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user