mirror of https://github.com/PCSX2/pcsx2.git
EE: _flushMMXregs is a nop because inuse==0
This commit is contained in:
parent
45443b48ef
commit
095437d0c7
|
@ -313,7 +313,6 @@ struct _mmxregs {
|
|||
|
||||
void _initMMXregs();
|
||||
void _clearNeededMMXregs();
|
||||
void _flushMMXregs();
|
||||
u8 _hasFreeMMXreg();
|
||||
int _getNumMMXwrite();
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue