diff options
author | ths <ths@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-05-13 13:49:44 +0000 |
---|---|---|
committer | ths <ths@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-05-13 13:49:44 +0000 |
commit | 29929e349009731a2fb22a983da75f67b6e78362 (patch) | |
tree | 7f9d023bce207a7276bf7bff71da062e7029abcc /target-mips/op.c | |
parent | f707cfba9a5ee2d4ea6edc3d0588163141f285ad (diff) |
MIPS TLB style selection at runtime, by Herve Poussineau.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2809 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-mips/op.c')
-rw-r--r-- | target-mips/op.c | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/target-mips/op.c b/target-mips/op.c index 748f997d22..a0611e01c1 100644 --- a/target-mips/op.c +++ b/target-mips/op.c @@ -1411,12 +1411,7 @@ void op_mtc0_ebase (void) void op_mtc0_config0 (void) { -#if defined(MIPS_USES_R4K_TLB) - /* Fixed mapping MMU not implemented */ - env->CP0_Config0 = (env->CP0_Config0 & 0x8017FF88) | (T0 & 0x00000001); -#else - env->CP0_Config0 = (env->CP0_Config0 & 0xFE17FF88) | (T0 & 0x00000001); -#endif + env->CP0_Config0 = (env->CP0_Config0 & 0x81FFFFF8) | (T0 & 0x00000001); RETURN(); } @@ -2680,31 +2675,29 @@ void op_bc1tany4 (void) RETURN(); } -#if defined(MIPS_USES_R4K_TLB) void op_tlbwi (void) { - CALL_FROM_TB0(do_tlbwi); + CALL_FROM_TB0(env->do_tlbwi); RETURN(); } void op_tlbwr (void) { - CALL_FROM_TB0(do_tlbwr); + CALL_FROM_TB0(env->do_tlbwr); RETURN(); } void op_tlbp (void) { - CALL_FROM_TB0(do_tlbp); + CALL_FROM_TB0(env->do_tlbp); RETURN(); } void op_tlbr (void) { - CALL_FROM_TB0(do_tlbr); + CALL_FROM_TB0(env->do_tlbr); RETURN(); } -#endif /* Specials */ #if defined (CONFIG_USER_ONLY) |