Improve FGR handling

This commit is contained in:
SimoneN64
2023-11-13 16:08:21 +01:00
parent 0791e83e53
commit 22fe515459
4 changed files with 187 additions and 224 deletions

View File

@@ -254,11 +254,8 @@ void FireException(Registers& regs, ExceptionCode code, int cop, s64 pc) {
bool old_exl = regs.cop0.status.exl;
if(!regs.cop0.status.exl) {
if(regs.prevDelaySlot) {
regs.cop0.cause.branchDelay = true;
if(regs.cop0.cause.branchDelay = regs.prevDelaySlot) {
pc -= 4;
} else {
regs.cop0.cause.branchDelay = false;
}
regs.cop0.status.exl = true;