EE: _flushMMXregs is a nop because inuse==0

This commit is contained in:
Gregory Hainaut 2016-02-07 12:57:56 +01:00
parent 45443b48ef
commit 095437d0c7
3 changed files with 0 additions and 31 deletions

View File

@ -313,7 +313,6 @@ struct _mmxregs {
void _initMMXregs();
void _clearNeededMMXregs();
void _flushMMXregs();
u8 _hasFreeMMXreg();
int _getNumMMXwrite();

View File

@ -162,7 +162,6 @@ int _getFreeX86reg(int mode)
void _flushCachedRegs()
{
_flushConstRegs();
_flushMMXregs();
_flushXMMregs();
}
@ -519,32 +518,6 @@ int _getNumMMXwrite()
return num;
}
// write all active regs
void _flushMMXregs()
{
uint i;
for (i=0; i<iREGCNT_MMX; i++) {
if (mmxregs[i].inuse == 0) continue;
if( mmxregs[i].mode & MODE_WRITE ) {
pxAssert( !(g_cpuHasConstReg & (1<<mmxregs[i].reg)) );
pxAssert( mmxregs[i].reg != MMX_TEMP );
pxAssert( mmxregs[i].mode & MODE_READ );
pxAssert( mmxregs[i].reg != MMX_GPR );
if( MMX_IS32BITS(mmxregs[i].reg) )
xMOVD(ptr[(_MMXGetAddr(mmxregs[i].reg))], xRegisterMMX(i));
else
xMOVQ(ptr[(_MMXGetAddr(mmxregs[i].reg))], xRegisterMMX(i));
SetMMXstate();
mmxregs[i].mode &= ~MODE_WRITE;
mmxregs[i].mode |= MODE_READ;
}
}
}
void SetFPUstate() {
if (x86FpuState == MMX_STATE) {
xEMMS();

View File

@ -961,9 +961,6 @@ void iFlushCall(int flushtype)
else if( flushtype & FLUSH_FLUSH_XMM)
_flushXMMregs();
if( flushtype & FLUSH_FLUSH_MMX)
_flushMMXregs();
if( flushtype & FLUSH_CACHED_REGS )
_flushConstRegs();