GekkoDisassembler: Remove unused parameter dmode from ldst function

With the removal of m_flags, dmode is no longer used in ldst.
This commit is contained in:
Dentomologist 2023-07-01 18:07:41 -07:00
parent b3c5021fc4
commit 33dc2a9e6a
2 changed files with 9 additions and 9 deletions

View File

@ -884,7 +884,7 @@ void GekkoDisassembler::sradi(u32 in)
m_operands = fmt::format("{}, {}, {}", regnames[a], regnames[s], bsh);
}
void GekkoDisassembler::ldst(u32 in, std::string_view name, char reg, unsigned char dmode)
void GekkoDisassembler::ldst(u32 in, std::string_view name, char reg)
{
int s = (int)PPCGETD(in);
int a = (int)PPCGETA(in);
@ -2014,7 +2014,7 @@ u32* GekkoDisassembler::DoDisassembly(bool big_endian)
case 45:
case 46:
case 47:
ldst(in, ldstnames[PPCGETIDX(in) - 32], 'r', 0);
ldst(in, ldstnames[PPCGETIDX(in) - 32], 'r');
break;
case 48:
@ -2025,20 +2025,20 @@ u32* GekkoDisassembler::DoDisassembly(bool big_endian)
case 53:
case 54:
case 55:
ldst(in, ldstnames[PPCGETIDX(in) - 32], 'f', 0);
ldst(in, ldstnames[PPCGETIDX(in) - 32], 'f');
break;
case 58:
switch (in & 3)
{
case 0:
ldst(in & ~3, "ld", 'r', PPCF_64);
ldst(in & ~3, "ld", 'r');
break;
case 1:
ldst(in & ~3, "ldu", 'r', PPCF_64);
ldst(in & ~3, "ldu", 'r');
break;
case 2:
ldst(in & ~3, "lwa", 'r', PPCF_64);
ldst(in & ~3, "lwa", 'r');
break;
default:
ill(in);
@ -2099,10 +2099,10 @@ u32* GekkoDisassembler::DoDisassembly(bool big_endian)
switch (in & 3)
{
case 0:
ldst(in & ~3, "std", 'r', PPCF_64);
ldst(in & ~3, "std", 'r');
break;
case 1:
ldst(in & ~3, "stdu", 'r', PPCF_64);
ldst(in & ~3, "stdu", 'r');
break;
default:
ill(in);

View File

@ -79,7 +79,7 @@ private:
static void mspr(u32 in, int smode);
static void mtb(u32 in);
static void sradi(u32 in);
static void ldst(u32 in, std::string_view name, char reg, unsigned char dmode);
static void ldst(u32 in, std::string_view name, char reg);
static void fdabc(u32 in, std::string_view name, int mask, unsigned char dmode);
static void fmr(u32 in);
static void fdab(u32 in, std::string_view name);