GekkoDisassembler: Remove unused parameter dmode from rrn function

With the removal of m_flags, dmode is no longer used in rrn.
This commit is contained in:
Dentomologist 2023-07-01 18:06:08 -07:00
parent a177c8bcb1
commit b3c5021fc4
2 changed files with 5 additions and 7 deletions

View File

@ -733,8 +733,7 @@ void GekkoDisassembler::dab(u32 in, std::string_view name, int mask, int smode,
} }
// Last operand is no register: xxxx rD,rA,NB // Last operand is no register: xxxx rD,rA,NB
void GekkoDisassembler::rrn(u32 in, std::string_view name, int smode, int chkoe, int chkrc, void GekkoDisassembler::rrn(u32 in, std::string_view name, int smode, int chkoe, int chkrc)
unsigned char dmode)
{ {
if (chkrc >= 0 && ((in & 1) != (unsigned int)chkrc)) if (chkrc >= 0 && ((in & 1) != (unsigned int)chkrc))
{ {
@ -1880,7 +1879,7 @@ u32* GekkoDisassembler::DoDisassembly(bool big_endian)
break; break;
case 597: case 597:
rrn(in, "lswi", 0, 0, 0, 0); rrn(in, "lswi", 0, 0, 0);
break; break;
case 598: case 598:
@ -1919,7 +1918,7 @@ u32* GekkoDisassembler::DoDisassembly(bool big_endian)
break; break;
case 725: case 725:
rrn(in, "stswi", 0, 0, 0, 0); rrn(in, "stswi", 0, 0, 0);
break; break;
case 727: case 727:
@ -1943,7 +1942,7 @@ u32* GekkoDisassembler::DoDisassembly(bool big_endian)
break; break;
case 824: case 824:
rrn(in, "srawi", 1, 0, -1, 0); rrn(in, "srawi", 1, 0, -1);
break; break;
case 854: case 854:

View File

@ -73,8 +73,7 @@ private:
static void cmp(u32 in); static void cmp(u32 in);
static void trap(u32 in, unsigned char dmode); static void trap(u32 in, unsigned char dmode);
static void dab(u32 in, std::string_view name, int mask, int smode, int chkoe, int chkrc); static void dab(u32 in, std::string_view name, int mask, int smode, int chkoe, int chkrc);
static void rrn(u32 in, std::string_view name, int smode, int chkoe, int chkrc, static void rrn(u32 in, std::string_view name, int smode, int chkoe, int chkrc);
unsigned char dmode);
static void mtcr(u32 in); static void mtcr(u32 in);
static void msr(u32 in, int smode); static void msr(u32 in, int smode);
static void mspr(u32 in, int smode); static void mspr(u32 in, int smode);