pcsx2:interpreter: always false condition

Both fields are 10 bits but the ~ operation apply on the 32 bits.
Therefore msb bits were always '1' and the condition always false.

Code is only used on the interpreter but it could explain some hangs
This commit is contained in:
Gregory Hainaut 2015-09-11 20:01:01 +02:00
parent bfe1236d98
commit 0422854384
1 changed files with 1 additions and 1 deletions

View File

@ -509,7 +509,7 @@ void MTC0()
} }
int CPCOND0() { int CPCOND0() {
return ((dmacRegs.stat.CIS | ~dmacRegs.pcr.CPC) == 0x3ff); return (((dmacRegs.stat.CIS | ~dmacRegs.pcr.CPC) & 0x3FF) == 0x3ff);
} }
//#define CPCOND0 1 //#define CPCOND0 1