Merge pull request #12980 from mitaclaw/is-debugging-enabled-getter
JITs: Consistently Use Trivial `IsDebuggingEnabled` Getter
This commit is contained in:
commit
8b1046595b
|
@ -757,7 +757,7 @@ void Jit64::Jit(u32 em_address, bool clear_cache_and_retry_on_failure)
|
|||
|
||||
std::size_t block_size = m_code_buffer.size();
|
||||
|
||||
if (m_enable_debugging)
|
||||
if (IsDebuggingEnabled())
|
||||
{
|
||||
// We can link blocks as long as we are not single stepping
|
||||
EnableBlockLink();
|
||||
|
@ -1035,7 +1035,7 @@ bool Jit64::DoJit(u32 em_address, JitBlock* b, u32 nextPC)
|
|||
{
|
||||
auto& cpu = m_system.GetCPU();
|
||||
auto& power_pc = m_system.GetPowerPC();
|
||||
if (m_enable_debugging && power_pc.GetBreakPoints().IsAddressBreakPoint(op.address) &&
|
||||
if (IsDebuggingEnabled() && power_pc.GetBreakPoints().IsAddressBreakPoint(op.address) &&
|
||||
!cpu.IsStepping())
|
||||
{
|
||||
gpr.Flush();
|
||||
|
|
|
@ -943,7 +943,7 @@ void JitArm64::Jit(u32 em_address, bool clear_cache_and_retry_on_failure)
|
|||
|
||||
auto& cpu = m_system.GetCPU();
|
||||
|
||||
if (m_enable_debugging)
|
||||
if (IsDebuggingEnabled())
|
||||
{
|
||||
// We can link blocks as long as we are not single stepping
|
||||
SetBlockLinkingEnabled(true);
|
||||
|
@ -1237,7 +1237,7 @@ bool JitArm64::DoJit(u32 em_address, JitBlock* b, u32 nextPC)
|
|||
}
|
||||
else
|
||||
{
|
||||
if (m_enable_debugging && !cpu.IsStepping() &&
|
||||
if (IsDebuggingEnabled() && !cpu.IsStepping() &&
|
||||
m_system.GetPowerPC().GetBreakPoints().IsAddressBreakPoint(op.address))
|
||||
{
|
||||
FlushCarry();
|
||||
|
|
|
@ -151,7 +151,7 @@ void JitBase::InitFastmemArena()
|
|||
void JitBase::InitBLROptimization()
|
||||
{
|
||||
m_enable_blr_optimization =
|
||||
jo.enableBlocklink && !m_enable_debugging && EMM::IsExceptionHandlerSupported();
|
||||
jo.enableBlocklink && !IsDebuggingEnabled() && EMM::IsExceptionHandlerSupported();
|
||||
m_cleanup_after_stackfault = false;
|
||||
}
|
||||
|
||||
|
@ -267,7 +267,7 @@ bool JitBase::CanMergeNextInstructions(int count) const
|
|||
// Be careful: a breakpoint kills flags in between instructions
|
||||
for (int i = 1; i <= count; i++)
|
||||
{
|
||||
if (m_enable_debugging &&
|
||||
if (IsDebuggingEnabled() &&
|
||||
m_system.GetPowerPC().GetBreakPoints().IsAddressBreakPoint(js.op[i].address))
|
||||
{
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue