mirror of https://github.com/PCSX2/pcsx2.git
ee: directly call EMMS from dispatcher
Until we completely remove MMX from the recompiler
This commit is contained in:
parent
c121bccb03
commit
a9a26b93f9
|
@ -534,6 +534,7 @@ static DynGenFunc* _DynGen_EnterRecompiledCode()
|
|||
static DynGenFunc* _DynGen_DispatchBlockDiscard()
|
||||
{
|
||||
u8* retval = xGetPtr();
|
||||
xEMMS();
|
||||
xCALL(dyna_block_discard);
|
||||
xJMP(ExitRecompiledCode);
|
||||
return (DynGenFunc*)retval;
|
||||
|
@ -542,6 +543,7 @@ static DynGenFunc* _DynGen_DispatchBlockDiscard()
|
|||
static DynGenFunc* _DynGen_DispatchPageReset()
|
||||
{
|
||||
u8* retval = xGetPtr();
|
||||
xEMMS();
|
||||
xCALL(dyna_page_reset);
|
||||
xJMP(ExitRecompiledCode);
|
||||
return (DynGenFunc*)retval;
|
||||
|
@ -869,13 +871,6 @@ void R5900::Dynarec::OpcodeImpl::recBREAK()
|
|||
// Size is in dwords (4 bytes)
|
||||
void recClear(u32 addr, u32 size)
|
||||
{
|
||||
// necessary since recompiler doesn't call femms/emms
|
||||
#ifdef _MSC_VER
|
||||
__asm emms;
|
||||
#else
|
||||
__asm__ __volatile__("emms");
|
||||
#endif
|
||||
|
||||
if ((addr) >= maxrecmem || !(recLUT[(addr) >> 16] + (addr & ~0xFFFFUL)))
|
||||
return;
|
||||
addr = HWADDR(addr);
|
||||
|
|
Loading…
Reference in New Issue