diff --git a/desmume/src/cp15.c b/desmume/src/cp15.c index a72c95a6b..d8ff7b071 100644 --- a/desmume/src/cp15.c +++ b/desmume/src/cp15.c @@ -216,7 +216,7 @@ void armcp15_maskPrecalc(armcp15_t *armcp15) precalc(7) ; } -BOOL armcp15_isAccessAllowed(armcp15_t *armcp15,u32 address,u32 access) +INLINE BOOL armcp15_isAccessAllowed(armcp15_t *armcp15,u32 address,u32 access) { int i ; if (!(armcp15->ctrl & 1)) return TRUE ; /* protection checking is not enabled */ diff --git a/desmume/src/cp15.h b/desmume/src/cp15.h index c00e3625d..49496f3e5 100644 --- a/desmume/src/cp15.h +++ b/desmume/src/cp15.h @@ -78,7 +78,7 @@ BOOL armcp15_load(armcp15_t *armcp15, u8 CRd, u8 adr); BOOL armcp15_store(armcp15_t *armcp15, u8 CRd, u8 adr); BOOL armcp15_moveCP2ARM(armcp15_t *armcp15, u32 * R, u8 CRn, u8 CRm, u8 opcode1, u8 opcode2); BOOL armcp15_moveARM2CP(armcp15_t *armcp15, u32 val, u8 CRn, u8 CRm, u8 opcode1, u8 opcode2); -BOOL armcp15_isAccessAllowed(armcp15_t *armcp15,u32 address,u32 access) ; +INLINE BOOL armcp15_isAccessAllowed(armcp15_t *armcp15,u32 address,u32 access) ; #define CP15_ACCESS_WRITE 0