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:
parent
b3c5021fc4
commit
33dc2a9e6a
|
@ -884,7 +884,7 @@ void GekkoDisassembler::sradi(u32 in)
|
||||||
m_operands = fmt::format("{}, {}, {}", regnames[a], regnames[s], bsh);
|
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 s = (int)PPCGETD(in);
|
||||||
int a = (int)PPCGETA(in);
|
int a = (int)PPCGETA(in);
|
||||||
|
@ -2014,7 +2014,7 @@ u32* GekkoDisassembler::DoDisassembly(bool big_endian)
|
||||||
case 45:
|
case 45:
|
||||||
case 46:
|
case 46:
|
||||||
case 47:
|
case 47:
|
||||||
ldst(in, ldstnames[PPCGETIDX(in) - 32], 'r', 0);
|
ldst(in, ldstnames[PPCGETIDX(in) - 32], 'r');
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 48:
|
case 48:
|
||||||
|
@ -2025,20 +2025,20 @@ u32* GekkoDisassembler::DoDisassembly(bool big_endian)
|
||||||
case 53:
|
case 53:
|
||||||
case 54:
|
case 54:
|
||||||
case 55:
|
case 55:
|
||||||
ldst(in, ldstnames[PPCGETIDX(in) - 32], 'f', 0);
|
ldst(in, ldstnames[PPCGETIDX(in) - 32], 'f');
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 58:
|
case 58:
|
||||||
switch (in & 3)
|
switch (in & 3)
|
||||||
{
|
{
|
||||||
case 0:
|
case 0:
|
||||||
ldst(in & ~3, "ld", 'r', PPCF_64);
|
ldst(in & ~3, "ld", 'r');
|
||||||
break;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
ldst(in & ~3, "ldu", 'r', PPCF_64);
|
ldst(in & ~3, "ldu", 'r');
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
ldst(in & ~3, "lwa", 'r', PPCF_64);
|
ldst(in & ~3, "lwa", 'r');
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
ill(in);
|
ill(in);
|
||||||
|
@ -2099,10 +2099,10 @@ u32* GekkoDisassembler::DoDisassembly(bool big_endian)
|
||||||
switch (in & 3)
|
switch (in & 3)
|
||||||
{
|
{
|
||||||
case 0:
|
case 0:
|
||||||
ldst(in & ~3, "std", 'r', PPCF_64);
|
ldst(in & ~3, "std", 'r');
|
||||||
break;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
ldst(in & ~3, "stdu", 'r', PPCF_64);
|
ldst(in & ~3, "stdu", 'r');
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
ill(in);
|
ill(in);
|
||||||
|
|
|
@ -79,7 +79,7 @@ private:
|
||||||
static void mspr(u32 in, int smode);
|
static void mspr(u32 in, int smode);
|
||||||
static void mtb(u32 in);
|
static void mtb(u32 in);
|
||||||
static void sradi(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 fdabc(u32 in, std::string_view name, int mask, unsigned char dmode);
|
||||||
static void fmr(u32 in);
|
static void fmr(u32 in);
|
||||||
static void fdab(u32 in, std::string_view name);
|
static void fdab(u32 in, std::string_view name);
|
||||||
|
|
Loading…
Reference in New Issue