Merge pull request #10284 from JosJuice/no-blr-cr

PPCAnalyst: Don't treat blr as writing to CR
This commit is contained in:
Léo Lam 2022-01-01 17:39:59 +01:00 committed by GitHub
commit dc7ea16705
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;