Merge pull request #12802 from JosJuice/ppcanalyst-bi-shift

PPCAnalyst: Fix handling of FL_READ_CR_BI
This commit is contained in:
Tilka 2024-05-25 23:01:45 +01:00 committed by GitHub
commit 52f51d0d87
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -590,7 +590,7 @@ void PPCAnalyzer::SetInstructionStats(CodeBlock* block, CodeOp* code,
} }
else if (opinfo->flags & FL_READ_CR_BI) else if (opinfo->flags & FL_READ_CR_BI)
{ {
code->crIn[code->inst.BI] = true; code->crIn[code->inst.BI >> 2] = true;
} }
else if (opinfo->type == OpType::CR) else if (opinfo->type == OpType::CR)
{ {