PPCTables: Simplify UsesFPU
We can just retrieve the op info and check if the FPU flag is present
This commit is contained in:
parent
c8c61041ba
commit
d32359c915
|
@ -93,49 +93,11 @@ Interpreter::_interpreterInstruction GetInterpreterOp(UGeckoInstruction _inst)
|
||||||
namespace PPCTables
|
namespace PPCTables
|
||||||
{
|
{
|
||||||
|
|
||||||
bool UsesFPU(UGeckoInstruction _inst)
|
bool UsesFPU(UGeckoInstruction inst)
|
||||||
{
|
{
|
||||||
switch (_inst.OPCD)
|
GekkoOPInfo* const info = GetOpInfo(inst);
|
||||||
{
|
|
||||||
case 04: // PS
|
|
||||||
return _inst.SUBOP10 != 1014;
|
|
||||||
|
|
||||||
case 48: // lfs
|
return (info->flags & FL_USE_FPU) != 0;
|
||||||
case 49: // lfsu
|
|
||||||
case 50: // lfd
|
|
||||||
case 51: // lfdu
|
|
||||||
case 52: // stfs
|
|
||||||
case 53: // stfsu
|
|
||||||
case 54: // stfd
|
|
||||||
case 55: // stfdu
|
|
||||||
case 56: // psq_l
|
|
||||||
case 57: // psq_lu
|
|
||||||
|
|
||||||
case 59: // FPU-sgl
|
|
||||||
case 60: // psq_st
|
|
||||||
case 61: // psq_stu
|
|
||||||
case 63: // FPU-dbl
|
|
||||||
return true;
|
|
||||||
|
|
||||||
case 31:
|
|
||||||
switch (_inst.SUBOP10)
|
|
||||||
{
|
|
||||||
case 535:
|
|
||||||
case 567:
|
|
||||||
case 599:
|
|
||||||
case 631:
|
|
||||||
case 663:
|
|
||||||
case 695:
|
|
||||||
case 727:
|
|
||||||
case 759:
|
|
||||||
case 983:
|
|
||||||
return true;
|
|
||||||
default:
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
default:
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void InitTables(int cpu_core)
|
void InitTables(int cpu_core)
|
||||||
|
|
Loading…
Reference in New Issue