From 45c1579a1563bc4966cb443144381427b06b5de8 Mon Sep 17 00:00:00 2001 From: refractionpcsx2 Date: Tue, 13 Jul 2021 10:26:42 +0100 Subject: [PATCH] Debug: ignore perfectly timed DIV's, cycle count is off by one --- pcsx2/x86/ix86-32/iR5900-32.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pcsx2/x86/ix86-32/iR5900-32.cpp b/pcsx2/x86/ix86-32/iR5900-32.cpp index 4880291876..375aa9a71e 100644 --- a/pcsx2/x86/ix86-32/iR5900-32.cpp +++ b/pcsx2/x86/ix86-32/iR5900-32.cpp @@ -1163,13 +1163,14 @@ int cop2flags(u32 code) int COP2DivUnitTimings(u32 code) { + // Note: Cycles are off by 1 since the check ignores the actual op, so they are off by 1 switch (code & 0x3FF) { case 0x3BC: // DIV case 0x3BD: // SQRT - return 7; + return 6; case 0x3BE: // RSQRT - return 13; + return 12; default: return 0; // Used mainly for WAITQ }