JitBase: Add HasConstantCarry helper

This commit is contained in:
Sintendo 2024-12-27 09:47:54 +01:00
parent 05cad38abc
commit 50d991780f

View File

@ -178,6 +178,14 @@ protected:
void CleanUpAfterStackFault(); void CleanUpAfterStackFault();
bool CanMergeNextInstructions(int count) const; bool CanMergeNextInstructions(int count) const;
bool HasConstantCarry() const
{
#ifdef _M_ARM_64
return js.carryFlag == CarryFlag::ConstantTrue || js.carryFlag == CarryFlag::ConstantFalse;
#else
return false;
#endif
}
bool ShouldHandleFPExceptionForInstruction(const PPCAnalyst::CodeOp* op); bool ShouldHandleFPExceptionForInstruction(const PPCAnalyst::CodeOp* op);