porting 1180 to linux

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1182 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
nakeee 2008-11-15 20:01:24 +00:00
parent f48a74a236
commit 2a06f76f81
2 changed files with 8 additions and 0 deletions

View File

@ -505,7 +505,11 @@ void GatherPipeBursted()
// Wait for GPU to catch up
while (fifo.CPReadWriteDistance > 0) // TOCHECK: more checks could be needed
;
#ifdef _WIN32
InterlockedExchange((LONG*)&fifo.Fake_GPWDInterrupt, 0);
#else
Common::InterlockedExchange((int*)&fifo.Fake_GPWDInterrupt, 0);
#endif
LOGV(COMMANDPROCESSOR, 2, "!!! Fake_GPWDInterrupt raised. Fake_GPWDToken %i",fifo.Fake_GPWDToken);
}

View File

@ -102,7 +102,11 @@ THREAD_RETURN GPWatchdogThread(void *pArg)
// TODO (mb2): FIX this !!!
//if (token == _fifo.Fake_GPWDToken)
{
#ifdef _WIN32
InterlockedExchange((LONG*)&_fifo.Fake_GPWDInterrupt, 1);
#else
Common::InterlockedExchange((int*)&_fifo.Fake_GPWDInterrupt, 1);
#endif
//__Log(LogTypes::VIDEO,"!!! Watchdog hit",_fifo.CPReadWriteDistance);
}
token = _fifo.Fake_GPWDToken;