diff --git a/Source/Core/Core/Src/PowerPC/Jit64IL/IR.cpp b/Source/Core/Core/Src/PowerPC/Jit64IL/IR.cpp index bb0d721248..502f3ca289 100644 --- a/Source/Core/Core/Src/PowerPC/Jit64IL/IR.cpp +++ b/Source/Core/Core/Src/PowerPC/Jit64IL/IR.cpp @@ -259,8 +259,9 @@ InstLoc IRBuilder::FoldZeroOp(unsigned Opcode, unsigned extra) { return FRegCache[extra]; } if (Opcode == LoadFRegDENToZero) { - // cant use cache here - return EmitZeroOp(LoadFRegDENToZero, extra); + FRegCacheStore[extra] = 0; // prevent previous store operation from zapping + FRegCache[extra] = EmitZeroOp(LoadFRegDENToZero, extra); + return FRegCache[extra]; } if (Opcode == LoadCarry) { if (!CarryCache)