mmu: put braces to avoid gcc warning us we may are doing something fishy

This commit is contained in:
riccardom 2012-03-17 19:53:35 +00:00
parent 4134d2556b
commit d6935d07f7
1 changed files with 2 additions and 1 deletions

View File

@ -1350,11 +1350,12 @@ template<int PROCNUM> static void REG_IF_WriteByte(u32 addr, u8 val)
//arm7: IF &= ~0x00000000;
//UPDATE IN setIF() ALSO!!!!!!!!!!!!!!!!
//UPDATE IN mmu_loadstate ALSO!!!!!!!!!!!!
if(addr==2)
if (addr==2) {
if(PROCNUM==ARMCPU_ARM9)
val &= ~0x20;
else
val &= ~0x00;
}
//ZERO 01-dec-2010 : I am no longer sure this approach is correct.. it proved to be wrong for IPC fifo.......
//it seems as if IF bits should always be cached (only the user can clear them)