MIPS: Add define for Config.VI (virtual icache) bit
The Config.VI bit specifies that the instruction cache is virtually tagged, which is checked in c-r4k.c's probe_pcache(). Add a proper definition for it in mipsregs.h and make use of it. Signed-off-by: James Hogan <james.hogan@imgtec.com> Acked-by: Ralf Baechle <ralf@linux-mips.org> Cc: linux-mips@linux-mips.org Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:

committed by
Paolo Bonzini

parent
7414d2f650
commit
4b34bca0e4
@@ -1206,7 +1206,7 @@ static void probe_pcache(void)
|
||||
c->icache.linesz;
|
||||
c->icache.waybit = __ffs(icache_size/c->icache.ways);
|
||||
|
||||
if (config & 0x8) /* VI bit */
|
||||
if (config & MIPS_CONF_VI)
|
||||
c->icache.flags |= MIPS_CACHE_VTAG;
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user