diff options
| author | Leonid Yegoshin <Leonid.Yegoshin@imgtec.com> | 2014-11-13 06:49:21 -0500 |
|---|---|---|
| committer | Markos Chandras <markos.chandras@imgtec.com> | 2015-02-17 10:37:19 -0500 |
| commit | 34c56fc1c167facc375d927687df0a3891d164ac (patch) | |
| tree | ad8261f8c816da5dfe8d0fe73c0dc7985a220a8b /arch/mips/include/asm | |
| parent | 4e0748f5beb92a14f6be4716938cbf27177ecd07 (diff) | |
MIPS: asm: cpu: Add MIPSR6 ISA definitions
Add MIPS R6 to the ISA definitions
Signed-off-by: Leonid Yegoshin <Leonid.Yegoshin@imgtec.com>
Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
Diffstat (limited to 'arch/mips/include/asm')
| -rw-r--r-- | arch/mips/include/asm/cpu-features.h | 19 | ||||
| -rw-r--r-- | arch/mips/include/asm/cpu.h | 7 |
2 files changed, 20 insertions, 6 deletions
diff --git a/arch/mips/include/asm/cpu-features.h b/arch/mips/include/asm/cpu-features.h index 2897cfafcaf0..799dc6db7847 100644 --- a/arch/mips/include/asm/cpu-features.h +++ b/arch/mips/include/asm/cpu-features.h | |||
| @@ -189,12 +189,18 @@ | |||
| 189 | #ifndef cpu_has_mips32r2 | 189 | #ifndef cpu_has_mips32r2 |
| 190 | # define cpu_has_mips32r2 (cpu_data[0].isa_level & MIPS_CPU_ISA_M32R2) | 190 | # define cpu_has_mips32r2 (cpu_data[0].isa_level & MIPS_CPU_ISA_M32R2) |
| 191 | #endif | 191 | #endif |
| 192 | #ifndef cpu_has_mips32r6 | ||
| 193 | # define cpu_has_mips32r6 (cpu_data[0].isa_level & MIPS_CPU_ISA_M32R6) | ||
| 194 | #endif | ||
| 192 | #ifndef cpu_has_mips64r1 | 195 | #ifndef cpu_has_mips64r1 |
| 193 | # define cpu_has_mips64r1 (cpu_data[0].isa_level & MIPS_CPU_ISA_M64R1) | 196 | # define cpu_has_mips64r1 (cpu_data[0].isa_level & MIPS_CPU_ISA_M64R1) |
| 194 | #endif | 197 | #endif |
| 195 | #ifndef cpu_has_mips64r2 | 198 | #ifndef cpu_has_mips64r2 |
| 196 | # define cpu_has_mips64r2 (cpu_data[0].isa_level & MIPS_CPU_ISA_M64R2) | 199 | # define cpu_has_mips64r2 (cpu_data[0].isa_level & MIPS_CPU_ISA_M64R2) |
| 197 | #endif | 200 | #endif |
| 201 | #ifndef cpu_has_mips64r6 | ||
| 202 | # define cpu_has_mips64r6 (cpu_data[0].isa_level & MIPS_CPU_ISA_M64R6) | ||
| 203 | #endif | ||
| 198 | 204 | ||
| 199 | /* | 205 | /* |
| 200 | * Shortcuts ... | 206 | * Shortcuts ... |
| @@ -210,15 +216,20 @@ | |||
| 210 | 216 | ||
| 211 | #define cpu_has_mips_4_5_r2 (cpu_has_mips_4_5 | cpu_has_mips_r2) | 217 | #define cpu_has_mips_4_5_r2 (cpu_has_mips_4_5 | cpu_has_mips_r2) |
| 212 | 218 | ||
| 213 | #define cpu_has_mips32 (cpu_has_mips32r1 | cpu_has_mips32r2) | 219 | #define cpu_has_mips32 (cpu_has_mips32r1 | cpu_has_mips32r2 | cpu_has_mips32r6) |
| 214 | #define cpu_has_mips64 (cpu_has_mips64r1 | cpu_has_mips64r2) | 220 | #define cpu_has_mips64 (cpu_has_mips64r1 | cpu_has_mips64r2 | cpu_has_mips64r6) |
| 215 | #define cpu_has_mips_r1 (cpu_has_mips32r1 | cpu_has_mips64r1) | 221 | #define cpu_has_mips_r1 (cpu_has_mips32r1 | cpu_has_mips64r1) |
| 216 | #define cpu_has_mips_r2 (cpu_has_mips32r2 | cpu_has_mips64r2) | 222 | #define cpu_has_mips_r2 (cpu_has_mips32r2 | cpu_has_mips64r2) |
| 223 | #define cpu_has_mips_r6 (cpu_has_mips32r6 | cpu_has_mips64r6) | ||
| 217 | #define cpu_has_mips_r (cpu_has_mips32r1 | cpu_has_mips32r2 | \ | 224 | #define cpu_has_mips_r (cpu_has_mips32r1 | cpu_has_mips32r2 | \ |
| 218 | cpu_has_mips64r1 | cpu_has_mips64r2) | 225 | cpu_has_mips32r6 | cpu_has_mips64r1 | \ |
| 226 | cpu_has_mips64r2 | cpu_has_mips64r6) | ||
| 227 | |||
| 228 | /* MIPSR2 and MIPSR6 have a lot of similarities */ | ||
| 229 | #define cpu_has_mips_r2_r6 (cpu_has_mips_r2 | cpu_has_mips_r6) | ||
| 219 | 230 | ||
| 220 | #ifndef cpu_has_mips_r2_exec_hazard | 231 | #ifndef cpu_has_mips_r2_exec_hazard |
| 221 | #define cpu_has_mips_r2_exec_hazard cpu_has_mips_r2 | 232 | #define cpu_has_mips_r2_exec_hazard (cpu_has_mips_r2 | cpu_has_mips_r6) |
| 222 | #endif | 233 | #endif |
| 223 | 234 | ||
| 224 | /* | 235 | /* |
diff --git a/arch/mips/include/asm/cpu.h b/arch/mips/include/asm/cpu.h index 0b74bbf976e4..f604523aec3d 100644 --- a/arch/mips/include/asm/cpu.h +++ b/arch/mips/include/asm/cpu.h | |||
| @@ -332,11 +332,14 @@ enum cpu_type_enum { | |||
| 332 | #define MIPS_CPU_ISA_M32R2 0x00000020 | 332 | #define MIPS_CPU_ISA_M32R2 0x00000020 |
| 333 | #define MIPS_CPU_ISA_M64R1 0x00000040 | 333 | #define MIPS_CPU_ISA_M64R1 0x00000040 |
| 334 | #define MIPS_CPU_ISA_M64R2 0x00000080 | 334 | #define MIPS_CPU_ISA_M64R2 0x00000080 |
| 335 | #define MIPS_CPU_ISA_M32R6 0x00000100 | ||
| 336 | #define MIPS_CPU_ISA_M64R6 0x00000200 | ||
| 335 | 337 | ||
| 336 | #define MIPS_CPU_ISA_32BIT (MIPS_CPU_ISA_II | MIPS_CPU_ISA_M32R1 | \ | 338 | #define MIPS_CPU_ISA_32BIT (MIPS_CPU_ISA_II | MIPS_CPU_ISA_M32R1 | \ |
| 337 | MIPS_CPU_ISA_M32R2) | 339 | MIPS_CPU_ISA_M32R2 | MIPS_CPU_ISA_M32R6) |
| 338 | #define MIPS_CPU_ISA_64BIT (MIPS_CPU_ISA_III | MIPS_CPU_ISA_IV | \ | 340 | #define MIPS_CPU_ISA_64BIT (MIPS_CPU_ISA_III | MIPS_CPU_ISA_IV | \ |
| 339 | MIPS_CPU_ISA_V | MIPS_CPU_ISA_M64R1 | MIPS_CPU_ISA_M64R2) | 341 | MIPS_CPU_ISA_V | MIPS_CPU_ISA_M64R1 | MIPS_CPU_ISA_M64R2 | \ |
| 342 | MIPS_CPU_ISA_M64R6) | ||
| 340 | 343 | ||
| 341 | /* | 344 | /* |
| 342 | * CPU Option encodings | 345 | * CPU Option encodings |
