diff options
Diffstat (limited to 'arch/mips/include/asm/cpu-features.h')
-rw-r--r-- | arch/mips/include/asm/cpu-features.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/arch/mips/include/asm/cpu-features.h b/arch/mips/include/asm/cpu-features.h index 6e70b03b6aab..f56cc975b92f 100644 --- a/arch/mips/include/asm/cpu-features.h +++ b/arch/mips/include/asm/cpu-features.h | |||
@@ -26,7 +26,9 @@ | |||
26 | #ifndef cpu_has_segments | 26 | #ifndef cpu_has_segments |
27 | #define cpu_has_segments (cpu_data[0].options & MIPS_CPU_SEGMENTS) | 27 | #define cpu_has_segments (cpu_data[0].options & MIPS_CPU_SEGMENTS) |
28 | #endif | 28 | #endif |
29 | 29 | #ifndef cpu_has_eva | |
30 | #define cpu_has_eva (cpu_data[0].options & MIPS_CPU_EVA) | ||
31 | #endif | ||
30 | 32 | ||
31 | /* | 33 | /* |
32 | * For the moment we don't consider R6000 and R8000 so we can assume that | 34 | * For the moment we don't consider R6000 and R8000 so we can assume that |
@@ -299,4 +301,10 @@ | |||
299 | #define cpu_has_vz (cpu_data[0].ases & MIPS_ASE_VZ) | 301 | #define cpu_has_vz (cpu_data[0].ases & MIPS_ASE_VZ) |
300 | #endif | 302 | #endif |
301 | 303 | ||
304 | #if defined(CONFIG_CPU_HAS_MSA) && !defined(cpu_has_msa) | ||
305 | # define cpu_has_msa (cpu_data[0].ases & MIPS_ASE_MSA) | ||
306 | #elif !defined(cpu_has_msa) | ||
307 | # define cpu_has_msa 0 | ||
308 | #endif | ||
309 | |||
302 | #endif /* __ASM_CPU_FEATURES_H */ | 310 | #endif /* __ASM_CPU_FEATURES_H */ |