GP fifo reset fix (ZWW reset in DC at least). revert r1051 for ppl who don't own quadcore :p

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1057 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
memberTwo.mb2 2008-11-03 09:01:14 +00:00
parent d62d517c72
commit 5e261fbec3
2 changed files with 4 additions and 3 deletions

View file

@ -446,10 +446,12 @@ void Write16(const u16 _Value, const u32 _Address)
LOG(COMMANDPROCESSOR,"write to FIFO_BP_HI : %04x", _Value);
break;
// ignored writes
// needed for CPReadWriteDistance reset only
case FIFO_RW_DISTANCE_HI:
case FIFO_RW_DISTANCE_LO:
LOG(COMMANDPROCESSOR,"try to write to %s : %04x",((_Address & 0xFFF) == FIFO_RW_DISTANCE_HI) ? "FIFO_RW_DISTANCE_HI" : "FIFO_RW_DISTANCE_LO", _Value);
_dbg_assert_msg_(COMMANDPROCESSOR, _Value==0, "WTF? attempt to overwrite fifo CPReadWriteDistance with a value(%04x) != 0 ",_Value);
InterlockedExchange((LONG*)&fifo.CPReadWriteDistance, 0);
break;
}

View file

@ -113,8 +113,7 @@ void Fifo_EnterLoop(const SVideoInitialize &video_initialize)
#if defined(THREAD_VIDEO_WAKEUP_ONIDLE) && defined(_WIN32)
continue;
#else
//Common::SleepCurrentThread(1);
continue;
Common::SleepCurrentThread(1);
#endif
//etc...