]> Git Repo - qemu.git/commitdiff
Fix mips usermode emulation.
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>
Sun, 23 Sep 2007 17:54:29 +0000 (17:54 +0000)
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>
Sun, 23 Sep 2007 17:54:29 +0000 (17:54 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3212 c046a42c-6fe2-441c-8c8c-71466251a162

target-mips/translate_init.c

index a9e931264238726b0d393b39d0f495e1a6fc4787..1a98973da198d7c7cb10282c875da29e3da435c5 100644 (file)
@@ -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);
This page took 0.023391 seconds and 4 git commands to generate.