jit: Fix partial invalidation of larger blocks.

Fixes #7031.
This commit is contained in:
Unknown W. Brackets committed 2014-10-27 19:04:19 -07:00
1 parent ec4b11ab63
commit 5bb9d32eaa
4 files changed
+7 -3

No files matched your search

+1 -1
View File
@@ -600,7 +600,7 @@ void JitBlockCache::InvalidateICache(u32 address, const u32 length) {
do {
restart:
auto next = block_map_.lower_bound(std::make_pair(pAddr, 0));
auto last = block_map_.upper_bound(std::make_pair(pEnd, 0));
auto last = block_map_.upper_bound(std::make_pair(pAddr + MAX_BLOCK_INSTRUCTIONS, 0));
// Note that if next is end(), last will be end() too (equal.)
for (; next != last; ++next) {
const u32 blockStart = next->first.second;