From 4a8beb858890af7b3e2b60e70bb42b5a8b1dcfcf Mon Sep 17 00:00:00 2001 From: Eladash <18193363+elad335@users.noreply.github.com> Date: Fri, 29 Dec 2023 16:08:03 +0200 Subject: [PATCH] SPU LLVM: Minor fixup --- rpcs3/Emu/Cell/SPURecompiler.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rpcs3/Emu/Cell/SPURecompiler.cpp b/rpcs3/Emu/Cell/SPURecompiler.cpp index 7453e7763e..2beac7bb7b 100644 --- a/rpcs3/Emu/Cell/SPURecompiler.cpp +++ b/rpcs3/Emu/Cell/SPURecompiler.cpp @@ -4531,7 +4531,8 @@ class spu_llvm_recompiler : public spu_recompiler_base, public cpu_translator bool does_gpr_barrier_preceed_first_store(u32 i) const noexcept { const usz counter = store_context_ctr[i]; - return counter != 1 && counter < store_context_first_id[i]; + const usz first_id = store_context_first_id[i]; + return counter != 1 && first_id != umax && counter < first_id; } };