Bugfix for the TLB cache used by the MMU. Thanks to drkIIRaziel for spotting it.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6138 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
skidau 2010-08-28 00:37:27 +00:00
parent f8e8f25408
commit eb40f765c2
1 changed files with 2 additions and 4 deletions

View File

@ -697,9 +697,8 @@ u32 LookupTLBPageAddress(const XCheckTLBFlag _Flag, const u32 vpa, u32 *paddr)
{
if ((_Address & ~0xfff) == (PowerPC::ppcState.itlb_va[i & 127]))
{
u32 result = PowerPC::ppcState.itlb_pa[i & 127] | (_Address & 0xfff);
*paddr = PowerPC::ppcState.itlb_pa[i & 127] | (_Address & 0xfff);
PowerPC::ppcState.itlb_last = i;
paddr = &result;
return 1;
}
}
@ -710,9 +709,8 @@ u32 LookupTLBPageAddress(const XCheckTLBFlag _Flag, const u32 vpa, u32 *paddr)
{
if ((_Address & ~0xfff) == (PowerPC::ppcState.dtlb_va[i & 127]))
{
u32 result = PowerPC::ppcState.dtlb_pa[i & 127] | (_Address & 0xfff);
*paddr = PowerPC::ppcState.dtlb_pa[i & 127] | (_Address & 0xfff);
PowerPC::ppcState.dtlb_last = i;
paddr = &result;
return 1;
}
}