Skip to content

Commit

Permalink
Abort if SF reports a command as still ongoing or if a command as bee…
Browse files Browse the repository at this point in the history
…n requested but not executed - shall fix Sega rally
  • Loading branch information
Francois CARON committed Dec 24, 2023
1 parent 6132a82 commit 4d319f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yabause/src/sys/smpc/src/smpc.c
Original file line number Diff line number Diff line change
Expand Up @@ -682,7 +682,7 @@ void SmpcExec(s32 t) {


void SmpcINTBACKEnd(void) {
if ((SmpcRegs->COMREG == 0x10) && (SmpcRegs->SF != 0) && (SmpcInternalVars->timing>0)) {
if ((SmpcRegs->COMREG == 0x10) && ((SmpcRegs->SF != 0) || (SmpcInternalVars->timing>0))) {
SMPCLOG("Intback Abort %d\n", SmpcInternalVars->timing);
SmpcRegs->SF = 0; //End command without interrupt - not enough time
SmpcInternalVars->timing = -1;
Expand Down

0 comments on commit 4d319f0

Please sign in to comment.