a32_emit_x64: EmitA32SetCpsr: Correct cpsr_jaifm mask

This commit is contained in:
Merry 2022-07-31 08:51:02 +01:00 committed by merry
parent 23c23fbca3
commit 5086432f19

View file

@ -445,7 +445,7 @@ void A32EmitX64::EmitA32SetCpsr(A32EmitContext& ctx, IR::Inst* inst) {
// cpsr_jaifm // cpsr_jaifm
code.mov(tmp, cpsr); code.mov(tmp, cpsr);
code.and_(tmp, 0x07F0FDDF); code.and_(tmp, 0x010001DF);
code.mov(dword[r15 + offsetof(A32JitState, cpsr_jaifm)], tmp); code.mov(dword[r15 + offsetof(A32JitState, cpsr_jaifm)], tmp);
if (code.HasHostFeature(HostFeature::FastBMI2)) { if (code.HasHostFeature(HostFeature::FastBMI2)) {