diff --git a/pcsx2/System.cpp b/pcsx2/System.cpp index 7fdc857100..2267d2366a 100644 --- a/pcsx2/System.cpp +++ b/pcsx2/System.cpp @@ -380,9 +380,6 @@ void SysMainMemory::ReserveAll() m_ee.Reserve(); m_iop.Reserve(); m_vu.Reserve(); - - reserveNewVif(0); - reserveNewVif(1); } void SysMainMemory::CommitAll() diff --git a/pcsx2/x86/newVif.h b/pcsx2/x86/newVif.h index 83b6beeb2c..c47852f0ad 100644 --- a/pcsx2/x86/newVif.h +++ b/pcsx2/x86/newVif.h @@ -70,10 +70,9 @@ struct nVifStruct { HashBucket vifBlocks; // Vif Blocks - nVifStruct(); + nVifStruct() = default; }; -extern void reserveNewVif(int idx); extern void closeNewVif(int idx); extern void resetNewVif(int idx); extern void releaseNewVif(int idx); diff --git a/pcsx2/x86/newVif_Unpack.cpp b/pcsx2/x86/newVif_Unpack.cpp index 3fae1bea01..d20bf885c4 100644 --- a/pcsx2/x86/newVif_Unpack.cpp +++ b/pcsx2/x86/newVif_Unpack.cpp @@ -71,14 +71,6 @@ static const __aligned16 Fnptr_VifUnpackLoop UnpackLoopTable[2][2][2] = { }; // ---------------------------------------------------------------------------- -nVifStruct::nVifStruct() -{ -} - -void reserveNewVif(int idx) -{ -} - void resetNewVif(int idx) { // Safety Reset : Reassign all VIF structure info, just in case the VU1 pointers have diff --git a/pcsx2/x86/newVif_UnpackSSE.cpp b/pcsx2/x86/newVif_UnpackSSE.cpp index b32b09c8c4..ae5fdf31f9 100644 --- a/pcsx2/x86/newVif_UnpackSSE.cpp +++ b/pcsx2/x86/newVif_UnpackSSE.cpp @@ -58,12 +58,16 @@ void mergeVectors(xRegisterSSE dest, xRegisterSSE src, xRegisterSSE temp, int xy // VifUnpackSSE_Base Section // ===================================================================================================== VifUnpackSSE_Base::VifUnpackSSE_Base() - : dstIndirect(ecx) // parameter 1 of __fastcall + : usn(false) + , doMask(false) + , UnpkLoopIteration(0) + , UnpkNoOfIterations(0) + , IsAligned(0) + , dstIndirect(ecx) // parameter 1 of __fastcall , srcIndirect(edx) // parameter 2 of __fastcall , workReg( xmm1 ) , destReg( xmm0 ) { - UnpkLoopIteration = 0; } void VifUnpackSSE_Base::xMovDest() const {