JitArm64: Fix MSRUpdated(ARM64Reg) with FEATURE_FLAG_PERFMON set

The second parameter of the LogicalImm constructor is the size, not the
first.
This commit is contained in:
JosJuice 2023-12-16 12:07:11 +01:00
parent f87a4f0385
commit 064b23b25b

View File

@ -398,7 +398,7 @@ void JitArm64::MSRUpdated(ARM64Reg msr)
const u32 other_feature_flags = m_ppc_state.feature_flags & ~0x3;
UBFX(WA, msr, 4, 2);
if (other_feature_flags != 0)
ORR(WA, WA, LogicalImm(32, other_feature_flags));
ORR(WA, WA, LogicalImm(other_feature_flags, 32));
STR(IndexType::Unsigned, WA, PPC_REG, PPCSTATE_OFF(feature_flags));
gpr.Unlock(WA);