diff --git a/Source/Core/Core/PowerPC/Jit64/Jit_Integer.cpp b/Source/Core/Core/PowerPC/Jit64/Jit_Integer.cpp index bd4b20a2d3..8ec307889a 100644 --- a/Source/Core/Core/PowerPC/Jit64/Jit_Integer.cpp +++ b/Source/Core/Core/PowerPC/Jit64/Jit_Integer.cpp @@ -122,15 +122,7 @@ void Jit64::FinalizeCarryOverflow(bool oe, bool inv) { if (oe) { - // Make sure not to lose the carry flags (not a big deal, this path is rare). - PUSHF(); - // XER[OV] = 0 - AND(8, PPCSTATE(xer_so_ov), Imm8(~XER_OV_MASK)); - FixupBranch jno = J_CC(CC_NO); - // XER[OV/SO] = 1 - MOV(8, PPCSTATE(xer_so_ov), Imm8(XER_SO_MASK | XER_OV_MASK)); - SetJumpTarget(jno); - POPF(); + GenerateOverflow(); } // Do carry FinalizeCarry(inv ? CC_NC : CC_C);