mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
Full MIPS64 MMU implementation, by Aurelien Jarno.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2820 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
f1b0aa5de7
commit
100ce98812
3 changed files with 53 additions and 7 deletions
|
@ -391,6 +391,9 @@ static void r4k_fill_tlb (int idx)
|
|||
/* XXX: detect conflicting TLBs and raise a MCHECK exception when needed */
|
||||
tlb = &env->mmu.r4k.tlb[idx];
|
||||
tlb->VPN = env->CP0_EntryHi & (TARGET_PAGE_MASK << 1);
|
||||
#ifdef TARGET_MIPS64
|
||||
tlb->VPN &= 0xC00000FFFFFFFFFFULL;
|
||||
#endif
|
||||
tlb->ASID = env->CP0_EntryHi & 0xFF;
|
||||
tlb->PageMask = env->CP0_PageMask;
|
||||
tlb->G = env->CP0_EntryLo0 & env->CP0_EntryLo1 & 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue