Skip to content
Permalink
Browse files
Merge pull request #10284 from JosJuice/no-blr-cr
PPCAnalyst: Don't treat blr as writing to CR
  • Loading branch information
leoetlino committed Jan 1, 2022
2 parents 8b6b96a + b6395a7 commit dc7ea16
Showing 1 changed file with 0 additions and 7 deletions.
@@ -645,13 +645,6 @@ void PPCAnalyzer::SetInstructionStats(CodeBlock* block, CodeOp* code, const Gekk
if (opinfo->flags & FL_IN_FLOAT_S)
code->fregsIn[code->inst.FS] = true;

// For analysis purposes, we can assume that blr eats opinfo->flags.
if (opinfo->type == OpType::Branch && code->inst.hex == 0x4e800020)
{
code->outputCR0 = true;
code->outputCR1 = true;
}

code->branchUsesCtr = false;
code->branchTo = UINT32_MAX;

0 comments on commit dc7ea16

Please sign in to comment.