From 23893ffba8d0e456280f415a426e96bbeb95e750 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sun, 4 Jan 2015 15:48:55 -0800 Subject: [PATCH] x86jit: Fix crash in prefixes and simd enabled. --- Core/MIPS/x86/CompVFPU.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/MIPS/x86/CompVFPU.cpp b/Core/MIPS/x86/CompVFPU.cpp index 3122ecbfd9..1577388ca7 100644 --- a/Core/MIPS/x86/CompVFPU.cpp +++ b/Core/MIPS/x86/CompVFPU.cpp @@ -114,7 +114,6 @@ void Jit::ApplyPrefixST(u8 *vregs, u32 prefix, VectorSize sz) { // This puts the value into a temp reg, so we won't write the modified value back. vregs[i] = fpr.GetTempV(); - fpr.SimpleRegV(origV[regnum], 0); fpr.MapRegV(vregs[i], MAP_NOINIT | MAP_DIRTY); if (!constants) { @@ -124,6 +123,7 @@ void Jit::ApplyPrefixST(u8 *vregs, u32 prefix, VectorSize sz) { ERROR_LOG_REPORT(CPU, "Invalid VFPU swizzle: %08x / %d", prefix, sz); regnum = 0; } + fpr.SimpleRegV(origV[regnum], 0); MOVSS(fpr.VX(vregs[i]), fpr.V(origV[regnum])); if (abs) { ANDPS(fpr.VX(vregs[i]), M(&noSignMask));