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: Make fcmpX with flush-to-zero enabled less bad #9751

Merged
merged 2 commits into from Jun 5, 2021

Conversation

JosJuice
Copy link
Member

@JosJuice JosJuice commented May 25, 2021

See the added code comment for details. Fixes Pokémon Battle Revolution not progressing past the title screen.

@JosJuice JosJuice changed the title JitArm64: Fix fcmpX with flush-to-zero enabled JitArm64: Make fcmpX with flush-to-zero enabled less bad May 26, 2021
@JosJuice JosJuice force-pushed the jitarm64-fcmpx-ftz branch 3 times, most recently from ad4d7ce to 0ee3831 Compare May 26, 2021 13:01
// Setting AH = 1, FZ = 1, FIZ = 0 emulates the GC/Wii CPU's "non-IEEE mode". Unfortunately,
// the AH and FIZ bits were not added until 2020, so we can't count on setting AH actually
// doing anything. But flushing both inputs and outputs seems to cause less problems than
// flushing nothing, so let's just set FZ and AH and roll with whatever behavior we get.

Choose a reason for hiding this comment

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

Would this change in the near future? I'm confused about the relevance of the year.

Copy link
Member Author

Choose a reason for hiding this comment

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

In the future, CPUs will be released which support the AH bit. So for each year that passes, the percentage of users that have a CPU with support for it will increase.

Copy link
Member Author

Choose a reason for hiding this comment

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

Maybe I should clarify that "added in 2020" means added to AArch64, not to Dolphin.

Copy link
Member Author

Choose a reason for hiding this comment

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

Reworded.

Choose a reason for hiding this comment

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

Ok, so it's a hardware limitation, not of drivers or AArch itself. Got it

Only tested on a CPU which does not support FEAT_AFP.
See the added code comment for details. Fixes Pokémon Battle
Revolution not progressing past the title screen.
@JMC47 JMC47 merged commit 638909a into dolphin-emu:master Jun 5, 2021
11 checks passed
@JosJuice JosJuice deleted the jitarm64-fcmpx-ftz branch June 5, 2021 19:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants