1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-21 18:22:33 +01:00

PPU: fixup for old CPU

Abort building interpreter function when out of registers.
This commit is contained in:
Nekotekina 2022-01-20 08:31:05 +03:00
parent b42fae0989
commit d572d90bb7

View File

@ -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};