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
This commit is contained in:
Gregory Hainaut 2015-01-11 15:34:03 +01:00
parent 7b7a977d11
commit a5ff4aca80
1 changed files with 2 additions and 0 deletions

View File

@ -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);
}