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

Jit: Re-add dcbx masking #9999

Merged
merged 1 commit into from Aug 6, 2021
Merged

Conversation

JosJuice
Copy link
Member

@JosJuice JosJuice commented Aug 6, 2021

When making PR #9957, I checked whether the ~0x1f masking in dcbx actually was necessary. I came to the conclusion that it wasn't, so I removed it. However, I hadn't checked the second half of InvalidateICache closely enough – the masking is actually needed.

This commit re-adds the masking, but this time in C++ code instead of in jitted code in order to save icache. Though I suppose the difference doesn't matter all that much, since this is in farcode and all...

Hopefully fixes https://bugs.dolphin-emu.org/issues/12612 (not tested).

@JosJuice JosJuice marked this pull request as draft August 6, 2021 12:22
When making 92d1d60, I checked whether the ~0x1f masking in dcbx
actually was necessary. I came to the conclusion that it wasn't,
so I removed it. However, I hadn't checked the second half of
InvalidateICache closely enough - the masking is actually needed.

This commit re-adds the masking, but this time in C++ code instead
of in jitted code in order to save icache. Though I suppose the
difference doesn't matter all that much, since this is in farcode
and all...

Hopefully fixes https://bugs.dolphin-emu.org/issues/12612.
@JosJuice JosJuice marked this pull request as ready for review August 6, 2021 12:55
@AdmiralCurtiss
Copy link
Contributor

Yes, this fixes TP under MMU.

@lioncash lioncash merged commit 857d1c3 into dolphin-emu:master Aug 6, 2021
11 checks passed
@JosJuice JosJuice deleted the jit-dcbx-masking branch August 6, 2021 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants