A tiny restructuring to allow inlining of FifoCommandRunnable. Probably useless.

This commit is contained in:
comex 2014-08-24 18:17:39 -04:00
parent 14125cf951
commit 45a4236283
1 changed files with 4 additions and 3 deletions

View File

@ -469,12 +469,13 @@ void OpcodeDecoder_Shutdown()
u32 OpcodeDecoder_Run(bool skipped_frame)
{
u32 totalCycles = 0;
u32 cycles = FifoCommandRunnable();
while (cycles > 0)
while (true)
{
u32 cycles = FifoCommandRunnable();
if (cycles == 0)
break;
skipped_frame ? DecodeSemiNop() : Decode();
totalCycles += cycles;
cycles = FifoCommandRunnable();
}
return totalCycles;
}