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:
parent
b3b7ed2a2f
commit
fa5823ad9a
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue