Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #849 from FioraAeterna/fixppcanalyzer
PPCAnalyzer: move num_instructions initialization to correct place
  • Loading branch information
Sonicadvance1 committed Aug 22, 2014
2 parents 48f52b9 + 5c0145f commit fc5a73d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Source/Core/Core/PowerPC/PPCAnalyst.cpp
Expand Up @@ -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);

Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit fc5a73d

Please sign in to comment.