mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
Choose number of TLBs at runtime, by Herve Poussineau.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2693 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
04f20795ac
commit
fcb4a419f5
7 changed files with 26 additions and 27 deletions
|
@ -1270,7 +1270,7 @@ void op_mfc0_desave (void)
|
|||
|
||||
void op_mtc0_index (void)
|
||||
{
|
||||
env->CP0_Index = (env->CP0_Index & 0x80000000) | (T0 & (MIPS_TLB_NB - 1));
|
||||
env->CP0_Index = (env->CP0_Index & 0x80000000) | (T0 % env->nb_tlb);
|
||||
RETURN();
|
||||
}
|
||||
|
||||
|
@ -1314,7 +1314,7 @@ void op_mtc0_pagegrain (void)
|
|||
|
||||
void op_mtc0_wired (void)
|
||||
{
|
||||
env->CP0_Wired = T0 & (MIPS_TLB_NB - 1);
|
||||
env->CP0_Wired = T0 % env->nb_tlb;
|
||||
RETURN();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue