MIPS: cpu-probe: Mark XBurst CPU as having vtagged caches
authorPaul Cercueil <paul@crapouillou.net>
Sun, 6 Sep 2020 19:29:23 +0000 (21:29 +0200)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Fri, 18 Sep 2020 14:27:00 +0000 (16:27 +0200)
XBurst CPUs present in Ingenic SoCs have virtually tagged caches,
according to the <cpu-features-override.h> header.

Add that information to cpu_probe_ingenic().

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/kernel/cpu-probe.c

index a18f361..a07e66a 100644 (file)
@@ -2125,6 +2125,9 @@ static inline void cpu_probe_ingenic(struct cpuinfo_mips *c, unsigned int cpu)
        c->options &= ~MIPS_CPU_COUNTER;
        BUG_ON(!__builtin_constant_p(cpu_has_counter) || cpu_has_counter);
 
+       /* XBurst has virtually tagged icache */
+       c->icache.flags |= MIPS_CACHE_VTAG;
+
        switch (c->processor_id & PRID_IMP_MASK) {
 
        /* XBurst®1 with MXU1.0/MXU1.1 SIMD ISA */