Emulated the extra BAT's that the Wii has in the MMU.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5688 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
skidau 2010-06-14 05:38:39 +00:00
parent 41266b5ed0
commit 4ff200eccc
1 changed files with 3 additions and 1 deletions

View File

@ -783,7 +783,9 @@ u32 TranslateBlockAddress(u32 addr)
u32 result = 0;
UReg_MSR& m_MSR = ((UReg_MSR&)PowerPC::ppcState.msr);
for (int i=0; i<4; i++) {
int bats = Core::g_CoreStartupParameter.bWii?8:4;
for (int i = 0; i < bats; i++) {
u32 bl17 = ~(BATU_BL(PowerPC::ppcState.spr[SPR_DBAT0U + i * 2])<<17);
u32 addr2 = addr & (bl17 | 0xf001ffff);
u32 batu = (m_MSR.PR ? BATU_Vp : BATU_Vs);