Clearing memory on boot
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@505 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
7a68316c61
commit
daabc11592
|
@ -109,6 +109,8 @@ void CBoot::EmulatedBIOS(bool _bDebug)
|
|||
UReg_MSR& m_MSR = ((UReg_MSR&)PowerPC::ppcState.msr);
|
||||
m_MSR.FP = 1;
|
||||
|
||||
Memory::Clear();
|
||||
|
||||
//TODO: Game iso info to 0x80000000 according to yagcd - or does apploader do this?
|
||||
|
||||
Memory::Write_U32(0x4c000064, 0x80000300); // write default DFI Handler: rfi
|
||||
|
|
|
@ -586,6 +586,8 @@ void Clear()
|
|||
memset(m_pL1Cache, 0, L1_CACHE_SIZE);
|
||||
if (m_pEFB)
|
||||
memset(m_pEFB, 0, EFB_SIZE);
|
||||
if (Core::GetStartupParameter().bWii && m_pEXRAM)
|
||||
memset(m_pEXRAM, 0, EXRAM_SIZE);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue