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

Turn the break reason into an enum, fix some minor issues #20006

Merged
merged 1 commit into from
Feb 19, 2025

Conversation

hrydgard
Copy link
Owner

@hrydgard hrydgard commented Feb 19, 2025

The report #20004 , while reporting on an old version of PPSSPP, made me take a look at Core_Break, and how brittle it is to use a string there, if we actually care about the break reason. So this just converts it to an enum, and sets it in a couple of cases where it wasn't set before. Next cleanup in this area will be to disallow direct access to coreState except by the JIT which needs it.

Now you can also see the break reason in the imdebugger.

@hrydgard hrydgard added the Code Cleanup Cleanup to make future work easier. Needs to be done sometimes. label Feb 19, 2025
@hrydgard hrydgard added this to the v1.19.0 milestone Feb 19, 2025
@hrydgard hrydgard force-pushed the break-reason-refactor branch from 5e98430 to 31cf577 Compare February 19, 2025 22:01
@hrydgard hrydgard merged commit e365bfb into master Feb 19, 2025
19 checks passed
@hrydgard hrydgard deleted the break-reason-refactor branch February 19, 2025 23:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Code Cleanup Cleanup to make future work easier. Needs to be done sometimes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant