Avoid some unlikely uninitialized values.

This commit is contained in:
Unknown W. Brackets 2013-10-26 18:31:14 -07:00
parent 95c68ae1e7
commit e3834d5833
2 changed files with 18 additions and 4 deletions

View File

@ -893,8 +893,14 @@ namespace MIPSInt
high >>= 15;
d[i] = low | (high << 16);
}
if (sz == V_Quad) oz = V_Pair;
if (sz == V_Pair) oz = V_Single;
switch (sz) {
case V_Quad: oz = V_Pair; break;
case V_Pair: oz = V_Single; break;
default:
_dbg_assert_msg_(CPU,0,"Trying to interpret instruction that can't be interpreted");
oz = V_Single;
break;
}
}
break;
case 3: //vi2s
@ -906,8 +912,14 @@ namespace MIPSInt
high >>= 16;
d[i] = low | (high << 16);
}
if (sz == V_Quad) oz = V_Pair;
if (sz == V_Pair) oz = V_Single;
switch (sz) {
case V_Quad: oz = V_Pair; break;
case V_Pair: oz = V_Single; break;
default:
_dbg_assert_msg_(CPU,0,"Trying to interpret instruction that can't be interpreted");
oz = V_Single;
break;
}
}
break;
default:

View File

@ -282,6 +282,7 @@ const char *GetVectorNotation(int reg, VectorSize size)
case V_Pair: c='C'; row=(reg>>5)&2; break;
case V_Triple: c='C'; row=(reg>>6)&1; break;
case V_Quad: c='C'; row=(reg>>5)&2; break;
default: c='?'; break;
}
if (transpose && c == 'C') c='R';
if (transpose)
@ -305,6 +306,7 @@ const char *GetMatrixNotation(int reg, MatrixSize size)
case M_2x2: c='M'; row=(reg>>5)&2; break;
case M_3x3: c='M'; row=(reg>>6)&1; break;
case M_4x4: c='M'; row=(reg>>5)&2; break;
default: c='?'; break;
}
if (transpose && c=='M') c='E';
sprintf(hej[yo],"%c%i%i%i",c,mtx,col,row);