pcsx2: add missing case in switch

This commit is contained in:
Gregory Hainaut 2015-11-07 10:31:48 +01:00
parent b53be72c6e
commit f2f28d1794
2 changed files with 4 additions and 3 deletions

View File

@ -691,6 +691,8 @@ void CMipsInstruction::encodeNormal()
switch (immediateType) switch (immediateType)
{ {
case MIPS_NOIMMEDIATE:
break;
case MIPS_IMMEDIATE5: case MIPS_IMMEDIATE5:
case MIPS_IMMEDIATE20: case MIPS_IMMEDIATE20:
encoding |= immediate.value << 6; encoding |= immediate.value << 6;

View File

@ -93,9 +93,8 @@ void SysThreadBase::Suspend( bool isBlocking )
switch( m_ExecMode ) switch( m_ExecMode )
{ {
// FIXME what to do for this case // Invalid thread state, nothing to suspend
// case ExecMode_NoThreadYet: case ExecMode_NoThreadYet:
// Check again -- status could have changed since above. // Check again -- status could have changed since above.
case ExecMode_Closed: return; case ExecMode_Closed: return;