mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-01 13:48:56 +00:00
A tiny restructuring to allow inlining of FifoCommandRunnable. Probably useless.
This commit is contained in:
parent
14125cf951
commit
45a4236283
1 changed files with 4 additions and 3 deletions
|
@ -469,12 +469,13 @@ void OpcodeDecoder_Shutdown()
|
||||||
u32 OpcodeDecoder_Run(bool skipped_frame)
|
u32 OpcodeDecoder_Run(bool skipped_frame)
|
||||||
{
|
{
|
||||||
u32 totalCycles = 0;
|
u32 totalCycles = 0;
|
||||||
u32 cycles = FifoCommandRunnable();
|
while (true)
|
||||||
while (cycles > 0)
|
|
||||||
{
|
{
|
||||||
|
u32 cycles = FifoCommandRunnable();
|
||||||
|
if (cycles == 0)
|
||||||
|
break;
|
||||||
skipped_frame ? DecodeSemiNop() : Decode();
|
skipped_frame ? DecodeSemiNop() : Decode();
|
||||||
totalCycles += cycles;
|
totalCycles += cycles;
|
||||||
cycles = FifoCommandRunnable();
|
|
||||||
}
|
}
|
||||||
return totalCycles;
|
return totalCycles;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue