From d6935d07f7cba94fe1cd04bd906e4ac2b7c3384c Mon Sep 17 00:00:00 2001 From: riccardom Date: Sat, 17 Mar 2012 19:53:35 +0000 Subject: [PATCH] mmu: put braces to avoid gcc warning us we may are doing something fishy --- desmume/src/MMU.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/desmume/src/MMU.cpp b/desmume/src/MMU.cpp index 39a0e6ec5..f15d828f5 100644 --- a/desmume/src/MMU.cpp +++ b/desmume/src/MMU.cpp @@ -1350,11 +1350,12 @@ template 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)