void CPUThread::SetBranch(const u32 pc, bool record_branch) { m_is_branch = true; nPC = pc; if(m_trace_call_stack && record_branch) CallStackBranch(pc); }
void CPUThread::SetBranch(const u64 pc, bool record_branch) { if(!Memory.IsGoodAddr(m_offset + pc)) { ConLog.Error("%s branch error: bad address 0x%llx #pc: 0x%llx", GetFName().wx_str(), m_offset + pc, m_offset + PC); Emu.Pause(); } m_is_branch = true; nPC = pc; if(record_branch) CallStackBranch(pc); }