Merge pull request #4831 from unknownbrackets/jit-invalidate

When importing vars, invalidate jit for HI16 too
This commit is contained in:
Henrik Rydgård 2013-12-14 15:11:21 -08:00
commit a63e9828ed

View File

@ -499,6 +499,7 @@ void WriteVarSymbol(u32 exportAddress, u32 relocAddress, u8 type, bool reverse =
// We add 1 in that case so that it ends up the right value.
u16 high = (full >> 16) + ((full & 0x8000) ? 1 : 0);
Memory::Write_U32((it->data & ~0xFFFF) | high, it->addr);
currentMIPS->InvalidateICache(it->addr, 4);
}
lastHI16Processed = true;
}