vif: init field in constructor + remove empty function

This commit is contained in:
Gregory Hainaut 2017-01-22 16:23:40 +01:00
parent ad7892bd15
commit 5d119bec31
4 changed files with 7 additions and 15 deletions

View File

@ -380,9 +380,6 @@ void SysMainMemory::ReserveAll()
m_ee.Reserve(); m_ee.Reserve();
m_iop.Reserve(); m_iop.Reserve();
m_vu.Reserve(); m_vu.Reserve();
reserveNewVif(0);
reserveNewVif(1);
} }
void SysMainMemory::CommitAll() void SysMainMemory::CommitAll()

View File

@ -70,10 +70,9 @@ struct nVifStruct {
HashBucket vifBlocks; // Vif Blocks HashBucket vifBlocks; // Vif Blocks
nVifStruct(); nVifStruct() = default;
}; };
extern void reserveNewVif(int idx);
extern void closeNewVif(int idx); extern void closeNewVif(int idx);
extern void resetNewVif(int idx); extern void resetNewVif(int idx);
extern void releaseNewVif(int idx); extern void releaseNewVif(int idx);

View File

@ -71,14 +71,6 @@ static const __aligned16 Fnptr_VifUnpackLoop UnpackLoopTable[2][2][2] = {
}; };
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
nVifStruct::nVifStruct()
{
}
void reserveNewVif(int idx)
{
}
void resetNewVif(int idx) void resetNewVif(int idx)
{ {
// Safety Reset : Reassign all VIF structure info, just in case the VU1 pointers have // Safety Reset : Reassign all VIF structure info, just in case the VU1 pointers have

View File

@ -58,12 +58,16 @@ void mergeVectors(xRegisterSSE dest, xRegisterSSE src, xRegisterSSE temp, int xy
// VifUnpackSSE_Base Section // VifUnpackSSE_Base Section
// ===================================================================================================== // =====================================================================================================
VifUnpackSSE_Base::VifUnpackSSE_Base() 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 , srcIndirect(edx) // parameter 2 of __fastcall
, workReg( xmm1 ) , workReg( xmm1 )
, destReg( xmm0 ) , destReg( xmm0 )
{ {
UnpkLoopIteration = 0;
} }
void VifUnpackSSE_Base::xMovDest() const { void VifUnpackSSE_Base::xMovDest() const {