From d572d90bb751acc76576ebfa783c27aa0186d95c Mon Sep 17 00:00:00 2001 From: Nekotekina Date: Thu, 20 Jan 2022 08:31:05 +0300 Subject: [PATCH] PPU: fixup for old CPU Abort building interpreter function when out of registers. --- rpcs3/util/simd.hpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/rpcs3/util/simd.hpp b/rpcs3/util/simd.hpp index d04ab111db..f20b782935 100644 --- a/rpcs3/util/simd.hpp +++ b/rpcs3/util/simd.hpp @@ -117,7 +117,12 @@ namespace asmjit vec_type vec_alloc() { - ensure(~vec_allocated); + if (!~vec_allocated) + { + fail_flag = true; + return vec_type{0}; + } + const u32 idx = std::countr_one(vec_allocated); vec_allocated |= vec_allocated + 1; return vec_type{idx};