PPCAnalyst: Fix handling of FL_READ_CR_BI

BI contains both the field and the flag (5 bits total), so we need to
shift away the 2 flag bits to get the 3 field bits. (Same as the
CRBA/CRBB handling in the code just below the BI code.)
This commit is contained in:
JosJuice 2024-05-25 18:13:38 +02:00
parent e0e09d1074
commit 30eff8e37c
1 changed files with 1 additions and 1 deletions

View File

@ -590,7 +590,7 @@ void PPCAnalyzer::SetInstructionStats(CodeBlock* block, CodeOp* code,
}
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)
{