diff options
| author | LinesPrower <LinesPrower@gmail.com> | 2009-06-05 11:49:06 +0000 |
|---|---|---|
| committer | LinesPrower <LinesPrower@gmail.com> | 2009-06-05 11:49:06 +0000 |
| commit | 2ff53b21987f261a465da36b74459252708b7378 (patch) | |
| tree | b6efc30790beb968b6a90a29e8f4403f30cdd9a4 /Source/Core | |
| parent | 4e98655aa3366e00a45d3bc734ae6cf4958fb7c3 (diff) | |
Fix to R3312. I should be more careful next time...
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3331 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/Core/Src/PowerPC/Jit64IL/IR.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
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) |
