aboutsummaryrefslogtreecommitdiff
path: root/target-mips/op_helper.c
diff options
context:
space:
mode:
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-06-23 18:04:12 +0000
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-06-23 18:04:12 +0000
commite034e2c39aee1800101812045690e0575abb428b (patch)
treed549ba6b2d7b25cf83ab2995b9cee9266fc80f96 /target-mips/op_helper.c
parent5c40d2bd4836636b762906bf1516c30b0ed5d74c (diff)
Handle MIPS64 SEGBITS value correctly.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3011 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-mips/op_helper.c')
-rw-r--r--target-mips/op_helper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target-mips/op_helper.c b/target-mips/op_helper.c
index c169beb55a..e4f2676707 100644
--- a/target-mips/op_helper.c
+++ b/target-mips/op_helper.c
@@ -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;