mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-25 15:19:42 -06:00
PPCAnalyst: Actually check if instructions want CR
This commit is contained in:
@ -532,6 +532,13 @@ void PPCAnalyzer::SetInstructionStats(CodeBlock* block, CodeOp* code,
|
|||||||
}
|
}
|
||||||
|
|
||||||
code->wantsCR = BitSet8(0);
|
code->wantsCR = BitSet8(0);
|
||||||
|
if (opinfo->flags & FL_READ_ALL_CR)
|
||||||
|
code->wantsCR = BitSet8(0xFF);
|
||||||
|
else if (opinfo->flags & FL_READ_CRn)
|
||||||
|
code->wantsCR[code->inst.CRFS] = true;
|
||||||
|
else if (opinfo->flags & FL_READ_CR_BI)
|
||||||
|
code->wantsCR[code->inst.BI] = true;
|
||||||
|
|
||||||
code->outputCR = BitSet8(0);
|
code->outputCR = BitSet8(0);
|
||||||
if (opinfo->flags & FL_SET_ALL_CR)
|
if (opinfo->flags & FL_SET_ALL_CR)
|
||||||
code->outputCR = BitSet8(0xFF);
|
code->outputCR = BitSet8(0xFF);
|
||||||
|
Reference in New Issue
Block a user