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

EE Cache: Writeback dirty cache entries when exiting the interpreter. #12069

Merged
merged 1 commit into from
Dec 8, 2024

Conversation

F0bes
Copy link
Member

@F0bes F0bes commented Dec 8, 2024

Description of Changes

Introducing another fix that affects 0.01% of users. 🥳
When the interpreter shuts down and control goes to the recompiler I've made it so all EE cache entries are written back to memory.

Rationale behind Changes

This fixes #6637

Suggested Testing Steps

Run a game, enable the EE cache, disable the recompiler, and then enable the recompiler. It some instances it would cause PCSX2 to crash or the game to TLB miss and freeze. This should have been addressed in this PR.

@F0bes F0bes force-pushed the int-exit-cache-writeback branch from f3df9b6 to c94c9be Compare December 8, 2024 19:21
Copy link
Contributor

@TheLastRar TheLastRar left a comment

Choose a reason for hiding this comment

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

Bionicle Heroes (I listed the wrong game in Discord) no longer (inconsistently) crashes the emulator on the language select screen when you enable recompiler.

Bionicle (the not Heroes one) no longer crashes if you enable the recompiler just before the intro FMV.

@F0bes F0bes merged commit 313ddb7 into master Dec 8, 2024
21 checks passed
@F0bes F0bes deleted the int-exit-cache-writeback branch December 8, 2024 22:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG]: Crash when interpreter with cache enabled is toggled off
2 participants