Merge pull request #12429 from JosJuice/jitarm64-mtsrin-64-bit

JitArm64: Use 64-bit register for address in mtsrin
This commit is contained in:
Mai 2023-12-17 10:45:36 -05:00 committed by GitHub
commit 519234949e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -209,8 +209,8 @@ void JitArm64::mtsrin(UGeckoInstruction inst)
ARM64Reg addr = gpr.GetReg();
UBFM(index, RB, 28, 31);
ADDI2R(addr, PPC_REG, PPCSTATE_OFF_SR(0), addr);
STR(RD, addr, ArithOption(EncodeRegTo64(index), true));
ADDI2R(EncodeRegTo64(addr), PPC_REG, PPCSTATE_OFF_SR(0), EncodeRegTo64(addr));
STR(RD, EncodeRegTo64(addr), ArithOption(EncodeRegTo64(index), true));
gpr.Unlock(index, addr);
}