Minor bugfix to the TLB cache

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4848 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
skidau 2010-01-16 03:55:53 +00:00
parent b3b7ed2a2f
commit fa5823ad9a
1 changed files with 1 additions and 1 deletions

View File

@ -706,7 +706,7 @@ u32 TranslatePageAddress(u32 _Address, XCheckTLBFlag _Flag)
// TLB cache
PowerPC::ppcState.tlb_last++;
PowerPC::ppcState.tlb_last &= 15;
PowerPC::ppcState.tlb_pa[PowerPC::ppcState.tlb_last] = PTE2.RPN;
PowerPC::ppcState.tlb_pa[PowerPC::ppcState.tlb_last] = PTE2.RPN << 12;
PowerPC::ppcState.tlb_va[PowerPC::ppcState.tlb_last] = _Address & ~0xfff;
switch (_Flag)