CPU/Recompiler: Implement j/jal/jr/jalr/beq/bne/bgtz/blez

This commit is contained in:
Connor McLaughlin
2019-11-22 21:41:10 +10:00
parent 44676a6810
commit 167e2a3454
8 changed files with 287 additions and 58 deletions

View File

@ -78,4 +78,13 @@ void Thunks::UpdateLoadDelay(Core* cpu)
cpu->UpdateLoadDelay();
}
void Thunks::RaiseAddressException(Core* cpu, u32 address, bool store, bool branch)
{
cpu->m_cop0_regs.BadVaddr = address;
if (branch)
cpu->RaiseException(Exception::AdEL, address, false, false, 0);
else
cpu->RaiseException(store ? Exception::AdES : Exception::AdEL);
}
} // namespace CPU::Recompiler