Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JitArm64: Indexed paired loadstores workaround, attempt 2 #10052

Merged
merged 2 commits into from Aug 23, 2021

Conversation

JosJuice
Copy link
Member

PR #10050 did not make the issue go away.

@JosJuice JosJuice marked this pull request as ready for review August 23, 2021 09:05
@JosJuice
Copy link
Member Author

This PR does not have the issue, according to both JMC and a forum user. I don't know why calling gpr.R(inst.RA) in cases where we don't need it works around the issue, but I guess it adds up with the theory that it's some kind of register cache issue. I'm still planning to look into the actual cause of the issue, but want to merge this early so that we don't leave this broken for too long.

@@ -47,11 +48,11 @@ void JitArm64::psq_lXX(UGeckoInstruction inst)
if (inst.RA || update) // Always uses the register on update
{
if (indexed)
ADD(addr_reg, gpr.R(inst.RA), gpr.R(inst.RB));
ADD(addr_reg, arm_addr, gpr.R(inst.RB));
Copy link
Member

@degasus degasus Aug 23, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Both gcc and MSVC called R(RB) before R(RA). So the order of register has changed. I doubt this is an issue here, but it can affect other (regcache) issues.

Edit: nvm, clang seems to prefer R(RA) before R(RB).

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The instruction variants that used RB were disabled by PR 10050, without affecting the issue.

@degasus degasus merged commit 757985d into dolphin-emu:master Aug 23, 2021
11 checks passed
@JosJuice JosJuice deleted the jitarm64-sbtm-attempt-2 branch August 23, 2021 17:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants