PPU: fixup for old CPU
Abort building interpreter function when out of registers.
This commit is contained in:
+6
-1
@@ -117,7 +117,12 @@ namespace asmjit
|
|||||||
|
|
||||||
vec_type vec_alloc()
|
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);
|
const u32 idx = std::countr_one(vec_allocated);
|
||||||
vec_allocated |= vec_allocated + 1;
|
vec_allocated |= vec_allocated + 1;
|
||||||
return vec_type{idx};
|
return vec_type{idx};
|
||||||
|
|||||||
Reference in New Issue
Block a user