a32_emit_x64: Bugfix for A32GetCpsr for non-FastBMI2

Incorrect loading of E and T flags
This commit is contained in:
Merry 2022-07-26 10:44:17 +01:00
parent a2b3199adf
commit 82d71b850e

View file

@ -384,7 +384,7 @@ void A32EmitX64::EmitA32GetCpsr(A32EmitContext& ctx, IR::Inst* inst) {
code.pdep(result, result, tmp); code.pdep(result, result, tmp);
} else { } else {
code.mov(result, dword[r15 + offsetof(A32JitState, upper_location_descriptor)]); code.mov(result, dword[r15 + offsetof(A32JitState, upper_location_descriptor)]);
code.imul(result, result, 0x12); code.imul(result, result, 0x120);
code.and_(result, 0x00000220); code.and_(result, 0x00000220);
code.mov(tmp, dword[r15 + offsetof(A32JitState, cpsr_ge)]); code.mov(tmp, dword[r15 + offsetof(A32JitState, cpsr_ge)]);