Commit 2337fdc2088f6cf8455021315d9de17bb95af850
1 parent
239fbd86
Fix mips usermode emulation.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3212 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
3 additions
and
0 deletions
target-mips/translate_init.c
... | ... | @@ -367,7 +367,10 @@ static void mvp_init (CPUMIPSState *env, mips_def_t *def) |
367 | 367 | implemented, 5 TCs implemented. */ |
368 | 368 | env->mvp->CP0_MVPConf0 = (1 << CP0MVPC0_M) | (1 << CP0MVPC0_TLBS) | |
369 | 369 | (0 << CP0MVPC0_GS) | (1 << CP0MVPC0_PCP) | |
370 | +#ifndef CONFIG_USER_ONLY | |
371 | + /* Usermode has no TLB support */ | |
370 | 372 | (env->tlb->nb_tlb << CP0MVPC0_PTLBE) | |
373 | +#endif | |
371 | 374 | // TODO: actually do 2 VPEs. |
372 | 375 | // (1 << CP0MVPC0_TCA) | (0x1 << CP0MVPC0_PVPE) | |
373 | 376 | // (0x04 << CP0MVPC0_PTC); | ... | ... |