mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 13:27:45 -07:00
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:
parent
f87a4f0385
commit
064b23b25b
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user