Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit beab375a authored by Ralf Baechle's avatar Ralf Baechle
Browse files

[MIPS] Treat CPUs with AR bit as physically indexed.

parent 92c7b62f
Loading
Loading
Loading
Loading
+8 −3
Original line number Diff line number Diff line
@@ -1009,7 +1009,12 @@ static void __init probe_pcache(void)
		break;
	case CPU_24K:
	case CPU_34K:
		if (!(read_c0_config7() & (1 << 16)))
		if ((read_c0_config7() & (1 << 16))) {
			/* effectively physically indexed dcache,
			   thus no virtual aliases. */
			c->dcache.flags |= MIPS_CACHE_PINDEX;
			break;
		}
	default:
		if (c->dcache.waysize > PAGE_SIZE)
			c->dcache.flags |= MIPS_CACHE_ALIASES;