diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2005-07-02 15:31:15 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2005-07-02 15:31:15 +0000 |
commit | 7a962d3087d24fa0ea377cbde39ab97f81457ff6 (patch) | |
tree | a84f7ccb6f65ed91da548b550bbd368655ece5f1 /target-mips/helper.c | |
parent | e1d9a50836b162d493afc9cb90610d8224a47c7e (diff) |
use MIPS_TLB_NB constant (Ralf Baechle)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1479 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-mips/helper.c')
-rw-r--r-- | target-mips/helper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target-mips/helper.c b/target-mips/helper.c index 1a15246a94..2381496142 100644 --- a/target-mips/helper.c +++ b/target-mips/helper.c @@ -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) && |