aboutsummaryrefslogtreecommitdiff
path: root/target-mips/op.c
diff options
context:
space:
mode:
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-05-13 14:07:26 +0000
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-05-13 14:07:26 +0000
commitf2e9ebef12c6f00d650eb06f33dbdd06db0919f2 (patch)
treeffa843b8357a4c7824f6ed7edf181bf4406b1e21 /target-mips/op.c
parent388bb21af622a413cc37f6df1f3ac5a92e951760 (diff)
MMU code improvements, by Aurelien Jarno.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2811 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-mips/op.c')
-rw-r--r--target-mips/op.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target-mips/op.c b/target-mips/op.c
index a0611e01c1..835b02a646 100644
--- a/target-mips/op.c
+++ b/target-mips/op.c
@@ -1283,7 +1283,7 @@ void op_mtc0_context (void)
void op_mtc0_pagemask (void)
{
/* 1k pages not implemented */
- env->CP0_PageMask = T0 & 0x1FFFE000;
+ env->CP0_PageMask = T0 & (0x1FFFFFFF & (TARGET_PAGE_MASK << 1));
RETURN();
}