stwcxd and lwarx are now emulated properly. Sonic Unleashed boots!

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1398 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
XTra.KrazzY 2008-12-04 19:12:09 +00:00
parent aa05c2173e
commit f3fb99446d
1 changed files with 4 additions and 5 deletions

View File

@ -597,7 +597,7 @@ void lwarx(UGeckoInstruction _inst)
void stwcxd(UGeckoInstruction _inst)
{
// This instruction, too
// This instruction, too
//PanicAlert("stwcxd - suspicious instruction");
// Stores Word Conditional indeXed
@ -609,13 +609,12 @@ void stwcxd(UGeckoInstruction _inst)
if(uAddress == g_reserveAddr) {
Memory::Write_U32(m_GPR[_inst.RS], uAddress);
g_bReserve = false;
SetCRField(0, 2 | XER.SO);
return;
}
}
// TODO: Set CR0 to IS_XER_SO
SetCRField(0, XER.SO);
}
void stwux(UGeckoInstruction _inst)