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
PPCAnalyst: Less strict interrupt checks in CanSwapAdjacentOps #10172
Conversation
I am curious why that tends to happen. Why certain promising pr's just get left abandoned? |
|
Because properly reviewing takes effort and skill, especially if the change is to code you're not familiar with. The number of people who are active on Dolphin and understand this part of the codebase is smaller than you might think. |
|
@JosJuice I was thinking, wouldn't it be better if there was a unified non-profit organization, that would coordinate and crowdfund emulator projects of all kinds of consoles? |
|
Hiring someone to work on an emulator as an actual job costs a lot of money, and doesn't guarantee that you'll get someone who actually knows this stuff better than the volunteers there are right now. Anyway, this is getting rather off topic. If you want to discuss this further you should join us on IRC. |
|
I toyed around with this for a bit last night, mainly to see what cases it allows that it didn't previously. The case that came up most frequently is moving |
4bfd3c1
to
2e9af50
Compare
|
Reordering blr sounds dangerous. When I wrote this patch, I may have been assuming that all branch instructions have I've added a check to abort if What confuses me is how |
|
It confused me too, but for whatever reason I'll be sure to give this another go later this week. |
|
Good catch! That's a strange piece of code... My best guess at its purpose is that it tries to make it so that if an instruction writes to a condition register, and then no instruction reads from that condition register before the next blr, we don't need to store the new value of the condition register to Perhaps I will submit a separate PR later to get rid of this. But for now, the check I added should be sufficient for making this PR not break anything. |
|
Created it as PR #10284. |
2e9af50
to
e46efc7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Gave this another go. blr is indeed no longer considered for swaps and the remaining 'new' swaps all look sane.
When these checks were originally added, we didn't have the nice canCauseException attribute. Now we do, so let's use it.
e46efc7
to
ab8b2f9
Compare
When these checks were originally added, we didn't have the nice
canCauseExceptionattribute. Now we do, so let's use it.Split out from PR #9857, because it looks like that PR isn't getting reviewed any time soon.