mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-23 04:55:22 +00:00
PPU: fixup for old CPU
Abort building interpreter function when out of registers.
This commit is contained in:
parent
b42fae0989
commit
d572d90bb7
1 changed files with 6 additions and 1 deletions
|
@ -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};
|
||||
|
|
Loading…
Add table
Reference in a new issue