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

GekkoDisassembler: Remove unused member and parameters #12019

Conversation

Dentomologist
Copy link
Contributor

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.

Copy link
Contributor

@iwubcode iwubcode left a 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

Comment on lines -1992 to +1949
nooper(in, "eieio", PPCF_SUPER);
nooper(in, "eieio");
Copy link
Contributor Author

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.

@JosJuice
Copy link
Member

JosJuice commented Jul 8, 2023

If you want to remove this, you should probably also remove the now unused Flags enum in GekkoDisassembler.h.

@Dentomologist
Copy link
Contributor Author

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?

@JosJuice
Copy link
Member

JosJuice commented Jul 8, 2023

Ah, I missed that. I suppose we can leave it then.

@JosJuice
Copy link
Member

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.
@Dentomologist Dentomologist force-pushed the gekkodisassembler_remove_unused_member_and_parameter branch from 22d4132 to 3c6ea82 Compare July 27, 2023 21:41
@JosJuice JosJuice merged commit ed8911b into dolphin-emu:master Jul 28, 2023
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants