Merge pull request #9658 from lioncash/fallthrough

BlockingLoop/Jit64: Indicate explicit fallthrough where applicable
This commit is contained in:
Léo Lam 2021-04-20 00:28:13 +02:00 committed by GitHub
commit 34348fad1d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -158,6 +158,7 @@ public:
// However, if we're not in the STATE_DONE state any more, the event should also be // However, if we're not in the STATE_DONE state any more, the event should also be
// triggered so that we'll skip the next waiting call quite fast. // triggered so that we'll skip the next waiting call quite fast.
m_done_event.Set(); m_done_event.Set();
[[fallthrough]];
case STATE_DONE: case STATE_DONE:
// We're done now. So time to check if we want to sleep or if we want to stay in a busy // We're done now. So time to check if we want to sleep or if we want to stay in a busy
@ -173,6 +174,7 @@ public:
// Busy loop. // Busy loop.
break; break;
} }
[[fallthrough]];
case STATE_SLEEPING: case STATE_SLEEPING:
// Just relax // Just relax

View File

@ -74,6 +74,7 @@ void Jit64::lXXx(UGeckoInstruction inst)
{ {
case 534: // lwbrx case 534: // lwbrx
byte_reversed = true; byte_reversed = true;
[[fallthrough]];
case 23: // lwzx case 23: // lwzx
case 55: // lwzux case 55: // lwzux
accessSize = 32; accessSize = 32;
@ -87,6 +88,7 @@ void Jit64::lXXx(UGeckoInstruction inst)
break; break;
case 790: // lhbrx case 790: // lhbrx
byte_reversed = true; byte_reversed = true;
[[fallthrough]];
case 279: // lhzx case 279: // lhzx
case 311: // lhzux case 311: // lhzux
accessSize = 16; accessSize = 16;