mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06: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:
@ -398,7 +398,7 @@ void JitArm64::MSRUpdated(ARM64Reg msr)
|
|||||||
const u32 other_feature_flags = m_ppc_state.feature_flags & ~0x3;
|
const u32 other_feature_flags = m_ppc_state.feature_flags & ~0x3;
|
||||||
UBFX(WA, msr, 4, 2);
|
UBFX(WA, msr, 4, 2);
|
||||||
if (other_feature_flags != 0)
|
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));
|
STR(IndexType::Unsigned, WA, PPC_REG, PPCSTATE_OFF(feature_flags));
|
||||||
|
|
||||||
gpr.Unlock(WA);
|
gpr.Unlock(WA);
|
||||||
|
Reference in New Issue
Block a user