Implement a quick fix for Instruction Reordering

Instruction Reordering broke Mia Hamm and possibly other games too. The
easiest way to fix the problem was to simply disable reordering for
specific cases that were never accounted for.
This commit is contained in:
LegendOfDragoon 2015-01-31 17:23:43 -08:00
parent 1741623482
commit 0f1010379f
1 changed files with 5 additions and 1 deletions

View File

@ -1399,7 +1399,11 @@ void GetInstructionInfo(DWORD PC, OPCODE * RspOp, OPCODE_INFO * info) {
info->DestReg = RspOp->rt;
info->SourceReg0 = (DWORD)-1;
info->SourceReg1 = (DWORD)-1;
info->flags = COPO_MF_Instruction | GPR_Instruction | Load_Operation;
if (RspOp->rd == 0x4 || RspOp->rd == 0x7){
info->flags = InvalidOpcode;
} else{
info->flags = COPO_MF_Instruction | GPR_Instruction | Load_Operation;
}
break;
case RSP_COP0_MT: