Merge pull request #4705 from lioncash/mmu
MMU: Change '0' literals to 'false' in IsOptimizableGatherPipeWrite
This commit is contained in:
commit
2252b7a355
|
@ -771,16 +771,16 @@ u32 IsOptimizableMMIOAccess(u32 address, u32 accessSize)
|
||||||
bool IsOptimizableGatherPipeWrite(u32 address)
|
bool IsOptimizableGatherPipeWrite(u32 address)
|
||||||
{
|
{
|
||||||
if (PowerPC::memchecks.HasAny())
|
if (PowerPC::memchecks.HasAny())
|
||||||
return 0;
|
return false;
|
||||||
|
|
||||||
if (!UReg_MSR(MSR).DR)
|
if (!UReg_MSR(MSR).DR)
|
||||||
return 0;
|
return false;
|
||||||
|
|
||||||
// Translate address, only check BAT mapping.
|
// Translate address, only check BAT mapping.
|
||||||
// If we also optimize for TLB mappings, we'd have to clear the
|
// If we also optimize for TLB mappings, we'd have to clear the
|
||||||
// JitCache on each TLB invalidation.
|
// JitCache on each TLB invalidation.
|
||||||
if (!TranslateBatAddess(dbat_table, &address))
|
if (!TranslateBatAddess(dbat_table, &address))
|
||||||
return 0;
|
return false;
|
||||||
|
|
||||||
// Check whether the translated address equals the address in WPAR.
|
// Check whether the translated address equals the address in WPAR.
|
||||||
return address == 0x0C008000;
|
return address == 0x0C008000;
|
||||||
|
|
Loading…
Reference in New Issue