From b980797a161d4d0a10f6b96bfb2a736b96960013 Mon Sep 17 00:00:00 2001 From: JosJuice Date: Sat, 15 May 2021 18:19:04 +0200 Subject: [PATCH] PPCAnalyst: Fix broken bitexact analysis `code` points to the first instruction in the block, not the current instruction. --- Source/Core/Core/PowerPC/PPCAnalyst.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/Core/Core/PowerPC/PPCAnalyst.cpp b/Source/Core/Core/PowerPC/PPCAnalyst.cpp index caa9f0c398..a403583ab6 100644 --- a/Source/Core/Core/PowerPC/PPCAnalyst.cpp +++ b/Source/Core/Core/PowerPC/PPCAnalyst.cpp @@ -1015,11 +1015,11 @@ u32 PPCAnalyzer::Analyze(u32 address, CodeBlock* block, CodeBuffer* buffer, std: BitSet32 bitexact_inputs; if (op.opinfo->flags & FL_IN_FLOAT_A_BITEXACT) - bitexact_inputs[code->inst.FA] = true; + bitexact_inputs[op.inst.FA] = true; if (op.opinfo->flags & FL_IN_FLOAT_B_BITEXACT) - bitexact_inputs[code->inst.FB] = true; + bitexact_inputs[op.inst.FB] = true; if (op.opinfo->flags & FL_IN_FLOAT_C_BITEXACT) - bitexact_inputs[code->inst.FC] = true; + bitexact_inputs[op.inst.FC] = true; fprIsStoreSafe[op.fregOut] = (fprIsStoreSafe & bitexact_inputs) == bitexact_inputs; }