arm64: cache: Identify VPIPT I-caches
Add support for detecting VPIPT I-caches, as introduced by ARMv8.2. Acked-by: Mark Rutland <mark.rutland@arm.com> Signed-off-by: Will Deacon <will.deacon@arm.com> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
This commit is contained in:

committed by
Catalin Marinas

parent
02f7760e6e
commit
dda288d7e4
@@ -46,6 +46,7 @@ static char *icache_policy_str[] = {
|
||||
[0 ... ICACHE_POLICY_PIPT] = "RESERVED/UNKNOWN",
|
||||
[ICACHE_POLICY_VIPT] = "VIPT",
|
||||
[ICACHE_POLICY_PIPT] = "PIPT",
|
||||
[ICACHE_POLICY_VPIPT] = "VPIPT",
|
||||
};
|
||||
|
||||
unsigned long __icache_flags;
|
||||
@@ -291,6 +292,9 @@ static void cpuinfo_detect_icache_policy(struct cpuinfo_arm64 *info)
|
||||
switch (l1ip) {
|
||||
case ICACHE_POLICY_PIPT:
|
||||
break;
|
||||
case ICACHE_POLICY_VPIPT:
|
||||
set_bit(ICACHEF_VPIPT, &__icache_flags);
|
||||
break;
|
||||
default:
|
||||
/* Fallthrough */
|
||||
case ICACHE_POLICY_VIPT:
|
||||
|
Reference in New Issue
Block a user