mirror of
https://github.com/libretro/ppsspp.git
synced 2025-01-20 23:54:48 +00:00
x86jit: Handle unable to spill better.
Might as well check the result to be safe.
This commit is contained in:
parent
c0a04cbf7e
commit
0dc3e4e2db
@ -242,9 +242,13 @@ bool FPURegCache::TryMapRegsVS(const u8 *v, VectorSize vsz, int flags) {
|
||||
// Single is easy, just map normally but track as a SIMD reg.
|
||||
// This way V/VS can warn about improper usage properly.
|
||||
MapRegV(v[0], flags);
|
||||
X64Reg vx = VX(v[0]);
|
||||
if (vx == INVALID_REG)
|
||||
return false;
|
||||
|
||||
vregs[v[0]].lane = 1;
|
||||
if ((flags & MAP_DIRTY) != 0)
|
||||
xregs[VSX(v)].dirty = true;
|
||||
xregs[vx].dirty = true;
|
||||
if ((flags & MAP_NOLOCK) == 0)
|
||||
SpillLockV(v, vsz);
|
||||
Invariant();
|
||||
|
Loading…
x
Reference in New Issue
Block a user