From a442cb91a101bf19b1b0912db7fb071d62360369 Mon Sep 17 00:00:00 2001 From: kd-11 Date: Thu, 27 Nov 2025 02:25:00 +0300 Subject: [PATCH] rsx/cfg: Check for end flag before handling any instruction including NOP --- rpcs3/Emu/RSX/Program/Assembler/FPToCFG.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/rpcs3/Emu/RSX/Program/Assembler/FPToCFG.cpp b/rpcs3/Emu/RSX/Program/Assembler/FPToCFG.cpp index c9a16b58e2..d8de4eda0b 100644 --- a/rpcs3/Emu/RSX/Program/Assembler/FPToCFG.cpp +++ b/rpcs3/Emu/RSX/Program/Assembler/FPToCFG.cpp @@ -112,6 +112,7 @@ namespace rsx::assembler src1.HEX = decoded._u32[2]; src2.HEX = decoded._u32[3]; + end = !!dst.end; const u32 opcode = dst.opcode | (src1.opcode_is_branch << 6); if (opcode == RSX_FP_OPCODE_NOP) @@ -120,8 +121,6 @@ namespace rsx::assembler continue; } - end = !!dst.end; - bb->instructions.push_back({}); auto& ir_inst = bb->instructions.back(); std::memcpy(ir_inst.bytecode, &decoded._u32[0], 16);