diff --git a/Source/Core/VideoCommon/CommandProcessor.cpp b/Source/Core/VideoCommon/CommandProcessor.cpp index e42b7227db..9da48f5302 100644 --- a/Source/Core/VideoCommon/CommandProcessor.cpp +++ b/Source/Core/VideoCommon/CommandProcessor.cpp @@ -77,11 +77,22 @@ void DoState(PointerWrap &p) p.Do(interruptFinishWaiting); } -inline void WriteLow (volatile u32& _reg, u16 lowbits) {Common::AtomicStore(_reg,(_reg & 0xFFFF0000) | lowbits);} -inline void WriteHigh(volatile u32& _reg, u16 highbits) {Common::AtomicStore(_reg,(_reg & 0x0000FFFF) | ((u32)highbits << 16));} - -inline u16 ReadLow (u32 _reg) {return (u16)(_reg & 0xFFFF);} -inline u16 ReadHigh (u32 _reg) {return (u16)(_reg >> 16);} +UNUSED static inline void WriteLow(volatile u32& _reg, u16 lowbits) +{ + Common::AtomicStore(_reg, (_reg & 0xFFFF0000) | lowbits); +} +static inline void WriteHigh(volatile u32& _reg, u16 highbits) +{ + Common::AtomicStore(_reg, (_reg & 0x0000FFFF) | ((u32)highbits << 16)); +} +static inline u16 ReadLow(u32 _reg) +{ + return (u16)(_reg & 0xFFFF); +} +static inline u16 ReadHigh(u32 _reg) +{ + return (u16)(_reg >> 16); +} void Init() {