From 064b23b25b6e3ea326e098ae07f806fdc7dd3da7 Mon Sep 17 00:00:00 2001 From: JosJuice Date: Sat, 16 Dec 2023 12:07:11 +0100 Subject: [PATCH] JitArm64: Fix MSRUpdated(ARM64Reg) with FEATURE_FLAG_PERFMON set The second parameter of the LogicalImm constructor is the size, not the first. --- Source/Core/Core/PowerPC/JitArm64/Jit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/Core/PowerPC/JitArm64/Jit.cpp b/Source/Core/Core/PowerPC/JitArm64/Jit.cpp index 8d7638fde3..dfe32a6788 100644 --- a/Source/Core/Core/PowerPC/JitArm64/Jit.cpp +++ b/Source/Core/Core/PowerPC/JitArm64/Jit.cpp @@ -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);