From 95fe77a5949206ad42da63b7532e56150a4121ae Mon Sep 17 00:00:00 2001 From: Robert Date: Sun, 9 Oct 2016 16:15:19 +0200 Subject: [PATCH] bad merge fix --- pcsx2/Sio.h | 2 +- plugins/spu2-x/src/spu2sys.cpp | 53 +++++++++++++++++----------------- 2 files changed, 27 insertions(+), 28 deletions(-) diff --git a/pcsx2/Sio.h b/pcsx2/Sio.h index 00ffbd38b5..2f31026eca 100644 --- a/pcsx2/Sio.h +++ b/pcsx2/Sio.h @@ -17,7 +17,7 @@ // Let's enable this to free the IOP event handler of some considerable load. // Games are highly unlikely to need timed IRQ's for PAD and MemoryCard handling anyway (rama). -//#define SIO_INLINE_IRQS +#define SIO_INLINE_IRQS #include "MemoryCardFile.h" diff --git a/plugins/spu2-x/src/spu2sys.cpp b/plugins/spu2-x/src/spu2sys.cpp index 248047256a..243bf38995 100644 --- a/plugins/spu2-x/src/spu2sys.cpp +++ b/plugins/spu2-x/src/spu2sys.cpp @@ -498,27 +498,6 @@ void V_VolumeSlide::RegSet( u16 src ) Value = GetVol32( src ); } -// Ah the joys of endian-specific code! :D -static __forceinline void SetHiWord(u32& src, u16 value) -{ - ((u16*)&src)[1] = value; -} - -static __forceinline void SetLoWord(u32& src, u16 value) -{ - ((u16*)&src)[0] = value; -} - -static __forceinline u16 GetHiWord(u32& src) -{ - return ((u16*)&src)[1]; -} - -static __forceinline u16 GetLoWord(u32& src) -{ - return ((u16*)&src)[0]; -} - static u32 map_spu1to2(u32 addr) { return addr * 4 + (addr >= 0x200 ? 0xc0000 : 0); @@ -797,7 +776,6 @@ void V_Core::WriteRegPS1( u32 mem, u16 value ) u16 V_Core::ReadRegPS1(u32 mem) { - //ConLog("ReadRegPS1 from %x on core %d\n", mem, Index); pxAssume( Index == 0 ); // Valid on Core 0 only! bool show=true; @@ -907,6 +885,27 @@ u16 V_Core::ReadRegPS1(u32 mem) return value; } +// Ah the joys of endian-specific code! :D +static __forceinline void SetHiWord(u32& src, u16 value) +{ + ((u16*)&src)[1] = value; +} + +static __forceinline void SetLoWord(u32& src, u16 value) +{ + ((u16*)&src)[0] = value; +} + +static __forceinline u16 GetHiWord(u32& src) +{ + return ((u16*)&src)[1]; +} + +static __forceinline u16 GetLoWord(u32& src) +{ + return ((u16*)&src)[0]; +} + template< int CoreIdx, int VoiceIdx, int param > static void __fastcall RegWrite_VoiceParams( u16 value ) { @@ -1025,7 +1024,7 @@ static void __fastcall RegWrite_Core( u16 value ) const int omem = cAddr; const int core = CoreIdx; V_Core& thiscore = Cores[core]; - //ConLog("RegWrite_Core #%d addr: %x value %x \n", core, omem, value); + switch(omem) { case REG__1AC: @@ -1143,8 +1142,8 @@ static void __fastcall RegWrite_Core( u16 value ) SetLoWord( thiscore.Regs.reg_out, value ); \ if( result == thiscore.Regs.reg_out ) break; \ \ - const uint start_bit = hiword ? 16 : 0; \ - const uint end_bit = hiword ? 24 : 16; \ + const uint start_bit = (hiword) ? 16 : 0; \ + const uint end_bit = (hiword) ? 24 : 16; \ for (uint vc=start_bit, vx=1; vc, RegWrite_Core + RegWrite_Core, RegWrite_Core #define ReverbPair( core, mem ) \ - RegWrite_Reverb, RegWrite_Core + RegWrite_Reverb, RegWrite_Core #define REGRAW(addr) RegWrite_Raw