PPCAnalyzer: move num_instructions initialization to correct place
Much of the PPC Analyzer code (e.g. instruction reordering for merging branches) wasn't actually being run.
This commit is contained in:
parent
a09cf1d8f1
commit
5c0145f71b
|
@ -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)
|
||||
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].wantsPS1 = wantsPS1;
|
||||
}
|
||||
block->m_num_instructions = num_inst;
|
||||
return address;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue