mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
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
This commit is contained in:
parent
f707cfba9a
commit
29929e3490
8 changed files with 149 additions and 114 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue