From 36ab866c2cd9229f0784ce1d4c00ce4622ada85f Mon Sep 17 00:00:00 2001 From: Eladash <18193363+elad335@users.noreply.github.com> Date: Fri, 16 Feb 2024 09:05:52 +0200 Subject: [PATCH] SPU Analyzer: forgive invalid code, use interpreter --- rpcs3/Emu/Cell/SPUCommonRecompiler.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/rpcs3/Emu/Cell/SPUCommonRecompiler.cpp b/rpcs3/Emu/Cell/SPUCommonRecompiler.cpp index f9c8726b19..7b9cba2347 100644 --- a/rpcs3/Emu/Cell/SPUCommonRecompiler.cpp +++ b/rpcs3/Emu/Cell/SPUCommonRecompiler.cpp @@ -3569,6 +3569,13 @@ spu_program spu_recompiler_base::analyse(const be_t* ls, u32 entry_point, s } } + if (!m_bbs.count(entry_point)) + { + // Invalid code + spu_log.error("[0x%x] Invalid code", entry_point); + return {}; + } + // Fill entry map while (true) {