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

PPU/Debugger: View the currently used CR field content in register panel #14188

Merged
merged 1 commit into from Jul 12, 2023

Conversation

elad335
Copy link
Contributor

@elad335 elad335 commented Jul 12, 2023

CR register is composed of 8 different fields which are 32 bits in total, it's not easy to track and intuitively understand its relavant bits to the current code and how they affect the current thread code and being affected by it.
So this pull requests aims to predict what is the most relavant CR field to the current code and display it in an intuitive manner.

There is a specialization for STDCX and STWCX. (but other CR0 modifing instructions are currently not being detected)

Example: detected used CR4 field in context.

image

But when I keep stepping in this code and encounter an instruction using CR7:

image

@elad335 elad335 force-pushed the debug-cr branch 8 times, most recently from 4c920c7 to 38810e7 Compare July 12, 2023 09:49
@elad335 elad335 merged commit c0280b4 into RPCS3:master Jul 12, 2023
5 checks passed
@elad335 elad335 deleted the debug-cr branch July 12, 2023 14:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants