Merge pull request #4705 from lioncash/mmu

MMU: Change '0' literals to 'false' in IsOptimizableGatherPipeWrite
This commit is contained in:
Matthew Parlane 2017-01-22 16:24:49 +13:00 committed by GitHub
commit 2252b7a355
1 changed files with 3 additions and 3 deletions

View File

@ -771,16 +771,16 @@ u32 IsOptimizableMMIOAccess(u32 address, u32 accessSize)
bool IsOptimizableGatherPipeWrite(u32 address)
{
if (PowerPC::memchecks.HasAny())
return 0;
return false;
if (!UReg_MSR(MSR).DR)
return 0;
return false;
// Translate address, only check BAT mapping.
// If we also optimize for TLB mappings, we'd have to clear the
// JitCache on each TLB invalidation.
if (!TranslateBatAddess(dbat_table, &address))
return 0;
return false;
// Check whether the translated address equals the address in WPAR.
return address == 0x0C008000;