Add support for FPU and VFPU for nice delay slots.

This commit is contained in:
Unknown W. Brackets 2013-01-24 20:18:18 -08:00
parent f7ebddc4a3
commit 2748437032

View File

@ -93,6 +93,7 @@ namespace MIPSAnalyst
"addi", "addiu", "slti", "sltiu", "andi", "ori", "xori", "lui",
"lb", "lh", "lwl", "lw", "lbu", "lhu", "lwr",
"sb", "sh", "swl", "sw", "swr",
"sll", "srl", "sra", "sllv", "srlv", "srav",
"add", "addu", "sub", "subu", "and", "or", "xor", "nor",
"slt", "sltu",
};
@ -133,6 +134,13 @@ namespace MIPSAnalyst
if (op == 0)
return true;
// TODO: Once the flags are all correct on the tables, remove this safety.
if (IsDelaySlotInfoSafe(op))
{
// TODO: There may be IS_VFPU cases which are safe...
return (MIPSGetInfo(op) & IS_VFPU) == 0;
}
return false;
}
@ -142,6 +150,10 @@ namespace MIPSAnalyst
if (op == 0)
return true;
// TODO: Once the flags are all correct on the tables, remove this safety.
if (IsDelaySlotInfoSafe(op))
return (MIPSGetInfo(op) & OUT_FPUFLAG) == 0;
return false;
}