From a5ff4aca8034185f1d02515d4045458b12b07140 Mon Sep 17 00:00:00 2001 From: Gregory Hainaut Date: Sun, 11 Jan 2015 15:34:03 +0100 Subject: [PATCH] mvu: add a comment on special 'register' It explains why first 'register' isn't included in the loop. Hardware note: it is called a register but in hardware they're just wire stuck on 0/1, so not a real HW register --- pcsx2/x86/microVU_Compile.inl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pcsx2/x86/microVU_Compile.inl b/pcsx2/x86/microVU_Compile.inl index 56a5672f11..c809c537ae 100644 --- a/pcsx2/x86/microVU_Compile.inl +++ b/pcsx2/x86/microVU_Compile.inl @@ -268,12 +268,14 @@ void mVUoptimizePipeState(mV) { void mVUincCycles(mV, int x) { mVUcycles += x; + // VF[0] is a constant value (0.0 0.0 0.0 1.0) for (int z = 31; z > 0; z--) { calcCycles(mVUregs.VF[z].x, x); calcCycles(mVUregs.VF[z].y, x); calcCycles(mVUregs.VF[z].z, x); calcCycles(mVUregs.VF[z].w, x); } + // VI[0] is a constant value (0) for (int z = 15; z > 0; z--) { calcCycles(mVUregs.VI[z], x); }