diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2005-12-08 09:04:24 -0500 |
---|---|---|
committer | <ralf@denk.linux-mips.net> | 2006-01-10 08:39:06 -0500 |
commit | b4672d37293cb045ec4d57e8b76a62810c96da71 (patch) | |
tree | 21ba827850d7bc7c36d7009575b979d12b35227c /include/asm-mips/cpu-features.h | |
parent | e7958bb90d57f0da073cbd031a1808de51d1de15 (diff) |
MIPS: Introduce machinery for testing for MIPSxxR1/2.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'include/asm-mips/cpu-features.h')
-rw-r--r-- | include/asm-mips/cpu-features.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/include/asm-mips/cpu-features.h b/include/asm-mips/cpu-features.h index 03627cfb3e45..f8be4a470754 100644 --- a/include/asm-mips/cpu-features.h +++ b/include/asm-mips/cpu-features.h | |||
@@ -144,6 +144,18 @@ | |||
144 | # ifndef cpu_has_64bit_addresses | 144 | # ifndef cpu_has_64bit_addresses |
145 | # define cpu_has_64bit_addresses 0 | 145 | # define cpu_has_64bit_addresses 0 |
146 | # endif | 146 | # endif |
147 | # ifndef cpu_has_mips32r1 | ||
148 | # define cpu_has_mips32r1 (cpu_data[0].isa_level & MIPS_CPU_ISA_M32R1) | ||
149 | # endif | ||
150 | # ifndef cpu_has_mips32r2 | ||
151 | # define cpu_has_mips32r2 (cpu_data[0].isa_level & MIPS_CPU_ISA_M32R2) | ||
152 | # endif | ||
153 | # ifndef cpu_has_mips64r1 | ||
154 | # define cpu_has_mips64r1 0 | ||
155 | # endif | ||
156 | # ifndef cpu_has_mips64r2 | ||
157 | # define cpu_has_mips64r2 0 | ||
158 | # endif | ||
147 | #endif | 159 | #endif |
148 | 160 | ||
149 | #ifdef CONFIG_64BIT | 161 | #ifdef CONFIG_64BIT |
@@ -162,6 +174,18 @@ | |||
162 | # ifndef cpu_has_64bit_addresses | 174 | # ifndef cpu_has_64bit_addresses |
163 | # define cpu_has_64bit_addresses 1 | 175 | # define cpu_has_64bit_addresses 1 |
164 | # endif | 176 | # endif |
177 | # ifndef cpu_has_mips32r1 | ||
178 | # define cpu_has_mips32r1 0 | ||
179 | # endif | ||
180 | # ifndef cpu_has_mips32r2 | ||
181 | # define cpu_has_mips32r2 0 | ||
182 | # endif | ||
183 | # ifndef cpu_has_mips64r1 | ||
184 | # define cpu_has_mips64r1 (cpu_data[0].isa_level & MIPS_CPU_ISA_M64R1) | ||
185 | # endif | ||
186 | # ifndef cpu_has_mips64r2 | ||
187 | # define cpu_has_mips64r2 (cpu_data[0].isa_level & MIPS_CPU_ISA_M64R2) | ||
188 | # endif | ||
165 | #endif | 189 | #endif |
166 | 190 | ||
167 | #ifdef CONFIG_CPU_MIPSR2 | 191 | #ifdef CONFIG_CPU_MIPSR2 |