mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 08:43:55 -06:00
Handle MIPS64 SEGBITS value correctly.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3011 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
5c40d2bd48
commit
e034e2c39a
5 changed files with 32 additions and 16 deletions
|
@ -374,7 +374,7 @@ static void r4k_fill_tlb (int idx)
|
|||
tlb = &env->mmu.r4k.tlb[idx];
|
||||
tlb->VPN = env->CP0_EntryHi & (TARGET_PAGE_MASK << 1);
|
||||
#ifdef TARGET_MIPS64
|
||||
tlb->VPN &= 0xC00000FFFFFFFFFFULL;
|
||||
tlb->VPN &= env->SEGMask;
|
||||
#endif
|
||||
tlb->ASID = env->CP0_EntryHi & 0xFF;
|
||||
tlb->PageMask = env->CP0_PageMask;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue