From b164a5830f89b67b504c2761781273c5ecc1b2b4 Mon Sep 17 00:00:00 2001 From: Elad Ashkenazi <18193363+elad335@users.noreply.github.com> Date: Mon, 2 Sep 2024 12:48:14 +0300 Subject: [PATCH] Update SPULLVMRecompiler.cpp --- rpcs3/Emu/Cell/SPULLVMRecompiler.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/rpcs3/Emu/Cell/SPULLVMRecompiler.cpp b/rpcs3/Emu/Cell/SPULLVMRecompiler.cpp index 18f9fa27b3..91e6f2daaf 100644 --- a/rpcs3/Emu/Cell/SPULLVMRecompiler.cpp +++ b/rpcs3/Emu/Cell/SPULLVMRecompiler.cpp @@ -1890,6 +1890,12 @@ public: // Initialize registers and build PHI nodes if necessary for (u32 i = 0; i < s_reg_max; i++) { + if (bb.reg_const[i]) + { + m_block->reg[i] = make_const_vector(v128::from32p(bb.reg_val32[i]), get_type()); + continue; + } + const u32 src = m_finfo->fn ? bb.reg_origin_abs[i] : bb.reg_origin[i]; if (src > 0x40000)