mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-10 08:09:26 +01:00
JitCache: Clean up GetBlockFromStartAddress.
This commit is contained in:
parent
214f37ecef
commit
a8b26937f3
@ -180,14 +180,12 @@ JitBlock* JitBaseBlockCache::GetBlockFromStartAddress(u32 addr, u32 msr)
|
|||||||
auto map_result = start_block_map.find(translated_addr);
|
auto map_result = start_block_map.find(translated_addr);
|
||||||
if (map_result == start_block_map.end())
|
if (map_result == start_block_map.end())
|
||||||
return nullptr;
|
return nullptr;
|
||||||
JitBlock& b = *map_result->second;
|
|
||||||
if (b.invalid)
|
JitBlock* b = map_result->second;
|
||||||
|
if (b->invalid || b->effectiveAddress != addr ||
|
||||||
|
b->msrBits != (msr & JitBlock::JIT_CACHE_MSR_MASK))
|
||||||
return nullptr;
|
return nullptr;
|
||||||
if (b.effectiveAddress != addr)
|
return b;
|
||||||
return nullptr;
|
|
||||||
if (b.msrBits != (msr & JitBlock::JIT_CACHE_MSR_MASK))
|
|
||||||
return nullptr;
|
|
||||||
return &b;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const u8* JitBaseBlockCache::Dispatch()
|
const u8* JitBaseBlockCache::Dispatch()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user