From 5086432f199a46638521b026f0d36c263672ee7d Mon Sep 17 00:00:00 2001 From: Merry Date: Sun, 31 Jul 2022 08:51:02 +0100 Subject: [PATCH] a32_emit_x64: EmitA32SetCpsr: Correct cpsr_jaifm mask --- src/dynarmic/backend/x64/a32_emit_x64.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dynarmic/backend/x64/a32_emit_x64.cpp b/src/dynarmic/backend/x64/a32_emit_x64.cpp index 44932c77..3703c5e0 100644 --- a/src/dynarmic/backend/x64/a32_emit_x64.cpp +++ b/src/dynarmic/backend/x64/a32_emit_x64.cpp @@ -445,7 +445,7 @@ void A32EmitX64::EmitA32SetCpsr(A32EmitContext& ctx, IR::Inst* inst) { // cpsr_jaifm code.mov(tmp, cpsr); - code.and_(tmp, 0x07F0FDDF); + code.and_(tmp, 0x010001DF); code.mov(dword[r15 + offsetof(A32JitState, cpsr_jaifm)], tmp); if (code.HasHostFeature(HostFeature::FastBMI2)) {