mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-03 06:39:33 +00:00
Merge pull request #849 from FioraAeterna/fixppcanalyzer
PPCAnalyzer: move num_instructions initialization to correct place
This commit is contained in:
commit
fc5a73d62e
1 changed files with 2 additions and 1 deletions
|
@ -698,6 +698,8 @@ u32 PPCAnalyzer::Analyze(u32 address, CodeBlock *block, CodeBuffer *buffer, u32
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
block->m_num_instructions = num_inst;
|
||||||
|
|
||||||
if (block->m_num_instructions > 1)
|
if (block->m_num_instructions > 1)
|
||||||
ReorderInstructions(block->m_num_instructions, code);
|
ReorderInstructions(block->m_num_instructions, code);
|
||||||
|
|
||||||
|
@ -727,7 +729,6 @@ u32 PPCAnalyzer::Analyze(u32 address, CodeBlock *block, CodeBuffer *buffer, u32
|
||||||
code[i].wantsCR1 = wantsCR1;
|
code[i].wantsCR1 = wantsCR1;
|
||||||
code[i].wantsPS1 = wantsPS1;
|
code[i].wantsPS1 = wantsPS1;
|
||||||
}
|
}
|
||||||
block->m_num_instructions = num_inst;
|
|
||||||
return address;
|
return address;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue