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
This commit is contained in:
LinesPrower 2009-06-05 11:49:06 +00:00
parent 4e98655aa3
commit 2ff53b2198
1 changed files with 3 additions and 2 deletions

View File

@ -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)