From 3f421c95c2394c60484bcb0bd7c5bfff0dc656b1 Mon Sep 17 00:00:00 2001 From: Elad <18193363+elad335@users.noreply.github.com> Date: Mon, 15 Dec 2025 09:03:42 +0200 Subject: [PATCH] SPU Analyzer: Fix missing jump table entries in Mega mode --- rpcs3/Emu/Cell/SPUCommonRecompiler.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/rpcs3/Emu/Cell/SPUCommonRecompiler.cpp b/rpcs3/Emu/Cell/SPUCommonRecompiler.cpp index 2fbb08a97d..4d04b13666 100644 --- a/rpcs3/Emu/Cell/SPUCommonRecompiler.cpp +++ b/rpcs3/Emu/Cell/SPUCommonRecompiler.cpp @@ -3931,6 +3931,17 @@ spu_program spu_recompiler_base::analyse(const be_t* ls, u32 entry_point, s continue; } + for (auto it2 = it->second.begin(); it2 != it->second.end();) + { + if (*it2 < lsa || *it2 >= limit) + { + it2 = it->second.erase(it2); + continue; + } + + it2++; + } + it++; }