aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-09-23 17:54:29 +0000
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-09-23 17:54:29 +0000
commit2337fdc2088f6cf8455021315d9de17bb95af850 (patch)
treec95650c8d5c803787ad9e5a5307c4dd2bf1c4c6e
parent239fbd8623f627c1e6c0f2b41e2c5686c89d4aa6 (diff)
Fix mips usermode emulation.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3212 c046a42c-6fe2-441c-8c8c-71466251a162
-rw-r--r--target-mips/translate_init.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/target-mips/translate_init.c b/target-mips/translate_init.c
index a9e9312642..1a98973da1 100644
--- a/target-mips/translate_init.c
+++ b/target-mips/translate_init.c
@@ -367,7 +367,10 @@ static void mvp_init (CPUMIPSState *env, mips_def_t *def)
implemented, 5 TCs implemented. */
env->mvp->CP0_MVPConf0 = (1 << CP0MVPC0_M) | (1 << CP0MVPC0_TLBS) |
(0 << CP0MVPC0_GS) | (1 << CP0MVPC0_PCP) |
+#ifndef CONFIG_USER_ONLY
+ /* Usermode has no TLB support */
(env->tlb->nb_tlb << CP0MVPC0_PTLBE) |
+#endif
// TODO: actually do 2 VPEs.
// (1 << CP0MVPC0_TCA) | (0x1 << CP0MVPC0_PVPE) |
// (0x04 << CP0MVPC0_PTC);