From 50d991780fe9b1b6efbf4097c06c90b3b84dbdb6 Mon Sep 17 00:00:00 2001 From: Sintendo <3380580+Sintendo@users.noreply.github.com> Date: Fri, 27 Dec 2024 09:47:54 +0100 Subject: [PATCH] JitBase: Add HasConstantCarry helper --- Source/Core/Core/PowerPC/JitCommon/JitBase.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Source/Core/Core/PowerPC/JitCommon/JitBase.h b/Source/Core/Core/PowerPC/JitCommon/JitBase.h index fa2fdd167f..50c840a2b9 100644 --- a/Source/Core/Core/PowerPC/JitCommon/JitBase.h +++ b/Source/Core/Core/PowerPC/JitCommon/JitBase.h @@ -178,6 +178,14 @@ protected: void CleanUpAfterStackFault(); 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);