Just invalidate blocks on ClearCacheAt().

This makes it safe to call from a jitted syscall, etc.
This commit is contained in:
Unknown W. Brackets committed 2013-09-01 00:32:43 -07:00
1 parent 14bcca1f53
commit b558189c37
8 files changed
+14 -14

No files matched your search

+2 -2
View File
@@ -169,8 +169,8 @@ void Jit::ClearCache() {
GenerateFixedCode();
}
void Jit::ClearCacheAt(u32 em_address) {
ClearCache();
void Jit::ClearCacheAt(u32 em_address, int length) {
blocks.InvalidateICache(em_address, length);
}
Jit::Jit(MIPSState *mips) : blocks(mips, this), gpr(mips, &jo),mips_(mips)