Revert removing of the "dcbz->dcbf" hack
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4338 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
56b8b6493c
commit
0032d2746f
|
@ -317,16 +317,14 @@ void dcbtst(UGeckoInstruction _inst)
|
|||
|
||||
void dcbz(UGeckoInstruction _inst)
|
||||
{
|
||||
// !!! after the dcbz follows a dcbf... dont clear the memory in this case !!!
|
||||
// hack to prevent clearing of memory cached in the CPU instruction cache
|
||||
// needed to run WiiWare games
|
||||
// 0x81330c2c
|
||||
// LinesPrower: why? does it break something?
|
||||
// according to docs dcbz->dcbf should clear the memory immediately!
|
||||
// However, dcbz->dcbi won't clear anything, but that's completely senseless
|
||||
/* u32 NextOpcode = Memory::Read_U32(PC+4);
|
||||
u32 NextOpcode = Memory::Read_U32(PC+4);
|
||||
if (NextOpcode == 0x7C0400AC)
|
||||
{
|
||||
return;
|
||||
}*/
|
||||
}
|
||||
// HACK but works... we think
|
||||
Memory::Memset(Helper_Get_EA_X(_inst) & (~31), 0, 32);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue