From fbc453b0835e768c0d60e24a8db8887c8ab3831e Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sun, 30 Nov 2014 12:39:30 -0800 Subject: [PATCH] x86jit: Oops, here also. Maybe I should kill these early returns after all.. --- Core/MIPS/x86/RegCacheFPU.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Core/MIPS/x86/RegCacheFPU.cpp b/Core/MIPS/x86/RegCacheFPU.cpp index abc7907ba1..9a6c735ba1 100644 --- a/Core/MIPS/x86/RegCacheFPU.cpp +++ b/Core/MIPS/x86/RegCacheFPU.cpp @@ -225,6 +225,8 @@ bool FPURegCache::TryMapRegsVS(const u8 *v, VectorSize vsz, int flags) { // Already mapped then, perfect. Just mark dirty. if ((flags & MAP_DIRTY) != 0) xregs[VSX(v)].dirty = true; + if ((flags & MAP_NOLOCK) == 0) + SpillLockV(v, vsz); return true; } @@ -234,12 +236,11 @@ 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); - if ((flags & MAP_NOLOCK) == 0) { - SpillLockV(v, vsz); - } vregs[v[0]].lane = 1; if ((flags & MAP_DIRTY) != 0) xregs[VSX(v)].dirty = true; + if ((flags & MAP_NOLOCK) == 0) + SpillLockV(v, vsz); Invariant(); return true; }