Skip to content

Commit

Permalink
PPU: fixup for old CPU
Browse files Browse the repository at this point in the history
Abort building interpreter function when out of registers.
  • Loading branch information
Nekotekina committed Jan 20, 2022
1 parent b42fae0 commit d572d90
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion rpcs3/util/simd.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down

0 comments on commit d572d90

Please sign in to comment.