From 150afecc2936d3584836d48e7b77189e19ecaabf Mon Sep 17 00:00:00 2001 From: Eladash Date: Sat, 2 Sep 2023 19:26:21 +0300 Subject: [PATCH] Fixup spu_thread::discover_functions --- rpcs3/Emu/Cell/SPURecompiler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpcs3/Emu/Cell/SPURecompiler.cpp b/rpcs3/Emu/Cell/SPURecompiler.cpp index 62cf32f2b2..2f7bcfbf0f 100644 --- a/rpcs3/Emu/Cell/SPURecompiler.cpp +++ b/rpcs3/Emu/Cell/SPURecompiler.cpp @@ -2270,7 +2270,7 @@ std::vector spu_thread::discover_functions(u32 base_addr, std::span= base_addr; back -= 4) + for (u32 back = addr - 4, it = 10; it && back >= base_addr && back < std::min(base_addr + ls.size(), 0x3FFF0); it--, back -= 4) { const spu_opcode_t test_op{read_from_ptr>(ls, back - base_addr)}; const auto type = g_spu_itype.decode(test_op.opcode);