mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
use MIPS_TLB_NB constant (Ralf Baechle)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1479 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
e1d9a50836
commit
7a962d3087
2 changed files with 8 additions and 6 deletions
|
@ -33,7 +33,7 @@ static int map_address (CPUState *env, target_ulong *physical, int *prot,
|
|||
ret = -2;
|
||||
tag = (address & 0xFFFFE000);
|
||||
ASID = env->CP0_EntryHi & 0x000000FF;
|
||||
for (i = 0; i < 16; i++) {
|
||||
for (i = 0; i < MIPS_TLB_NB; i++) {
|
||||
tlb = &env->tlb[i];
|
||||
/* Check ASID, virtual page number & size */
|
||||
if ((tlb->G == 1 || tlb->ASID == ASID) &&
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue