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
GekkoDisassembler: Remove unused member and parameters #12019
GekkoDisassembler: Remove unused member and parameters #12019
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Like the other review, I do wonder what these were meant for. LGTM
| nooper(in, "eieio", PPCF_SUPER); | ||
| nooper(in, "eieio"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Today I learn about Old MacDonald's favorite instruction.
|
If you want to remove this, you should probably also remove the now unused Flags enum in GekkoDisassembler.h. |
|
PPCF_64 is still used by trap and trapi. Should I leave the enum alone for context or remove it and convert PPCF_64 to a constant? |
|
Ah, I missed that. I suppose we can leave it then. |
|
This needs a rebase. |
Writes to m_flags are pointless as it's never read.
With the removal of m_flags, dmode is no longer used in nooper.
With the removal of m_flags, dmode is no longer used in dab.
With the removal of m_flags, dmode is no longer used in rrn.
With the removal of m_flags, dmode is no longer used in ldst.
With the removal of m_flags, dmode is no longer used in fdabc.
22d4132
to
3c6ea82
Compare
GekkoDisassember.m_flags is written to but never read, so it can be removed.
With the removal of m_flags the dmode parameter is no longer used in functions nooper, dab, rrn, ldst, and fdabc, so remove it from them.