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

Always use a single core while interpreter mode #1467

Merged
merged 1 commit into from
Jan 5, 2025

Conversation

Crementif
Copy link
Member

Cemu's CPU interpreter mode (as opposed to the default speedy recompiler mode) is expected to be primarily used for debugging, and thus should always be used with one core. However, unlike the game profile option, the --force-interpreter launch parameter didn't limit the amount of cores used to 1 which caused issues with multiple threads trying to be paused at the same time.

This commit fixes that issue, alongside an additional fix that might help situations where a debugger trap instruction gets hit by two threads simultaneously. Eventually this should be replaced with a more advanced approach that'd freeze other threads while stepping.

Interpreter mode (as opposed to the regular speedy recompiler mode) is expected to be primarily used for debugging, and thus should be used with one core. However, unlike the game profile option, the `--force-interpreter` launch parameter didn't limit the amount of cores used to 1. This commit fixes that issue, alongside an additional temporary fix that helps situations where a debugger trap instruction gets hit by two threads simultaneously. Eventually this should be replaced with a more advanced approach that'd freeze other threads while stepping.
@Exzap Exzap merged commit 92021db into cemu-project:main Jan 5, 2025
5 checks passed
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.

2 participants