|
@@ -189,12 +189,18 @@
|
|
#ifndef cpu_has_mips32r2
|
|
#ifndef cpu_has_mips32r2
|
|
# define cpu_has_mips32r2 (cpu_data[0].isa_level & MIPS_CPU_ISA_M32R2)
|
|
# define cpu_has_mips32r2 (cpu_data[0].isa_level & MIPS_CPU_ISA_M32R2)
|
|
#endif
|
|
#endif
|
|
|
|
+#ifndef cpu_has_mips32r6
|
|
|
|
+# define cpu_has_mips32r6 (cpu_data[0].isa_level & MIPS_CPU_ISA_M32R6)
|
|
|
|
+#endif
|
|
#ifndef cpu_has_mips64r1
|
|
#ifndef cpu_has_mips64r1
|
|
# define cpu_has_mips64r1 (cpu_data[0].isa_level & MIPS_CPU_ISA_M64R1)
|
|
# define cpu_has_mips64r1 (cpu_data[0].isa_level & MIPS_CPU_ISA_M64R1)
|
|
#endif
|
|
#endif
|
|
#ifndef cpu_has_mips64r2
|
|
#ifndef cpu_has_mips64r2
|
|
# define cpu_has_mips64r2 (cpu_data[0].isa_level & MIPS_CPU_ISA_M64R2)
|
|
# define cpu_has_mips64r2 (cpu_data[0].isa_level & MIPS_CPU_ISA_M64R2)
|
|
#endif
|
|
#endif
|
|
|
|
+#ifndef cpu_has_mips64r6
|
|
|
|
+# define cpu_has_mips64r6 (cpu_data[0].isa_level & MIPS_CPU_ISA_M64R6)
|
|
|
|
+#endif
|
|
|
|
|
|
/*
|
|
/*
|
|
* Shortcuts ...
|
|
* Shortcuts ...
|
|
@@ -210,15 +216,20 @@
|
|
|
|
|
|
#define cpu_has_mips_4_5_r2 (cpu_has_mips_4_5 | cpu_has_mips_r2)
|
|
#define cpu_has_mips_4_5_r2 (cpu_has_mips_4_5 | cpu_has_mips_r2)
|
|
|
|
|
|
-#define cpu_has_mips32 (cpu_has_mips32r1 | cpu_has_mips32r2)
|
|
|
|
-#define cpu_has_mips64 (cpu_has_mips64r1 | cpu_has_mips64r2)
|
|
|
|
|
|
+#define cpu_has_mips32 (cpu_has_mips32r1 | cpu_has_mips32r2 | cpu_has_mips32r6)
|
|
|
|
+#define cpu_has_mips64 (cpu_has_mips64r1 | cpu_has_mips64r2 | cpu_has_mips64r6)
|
|
#define cpu_has_mips_r1 (cpu_has_mips32r1 | cpu_has_mips64r1)
|
|
#define cpu_has_mips_r1 (cpu_has_mips32r1 | cpu_has_mips64r1)
|
|
#define cpu_has_mips_r2 (cpu_has_mips32r2 | cpu_has_mips64r2)
|
|
#define cpu_has_mips_r2 (cpu_has_mips32r2 | cpu_has_mips64r2)
|
|
|
|
+#define cpu_has_mips_r6 (cpu_has_mips32r6 | cpu_has_mips64r6)
|
|
#define cpu_has_mips_r (cpu_has_mips32r1 | cpu_has_mips32r2 | \
|
|
#define cpu_has_mips_r (cpu_has_mips32r1 | cpu_has_mips32r2 | \
|
|
- cpu_has_mips64r1 | cpu_has_mips64r2)
|
|
|
|
|
|
+ cpu_has_mips32r6 | cpu_has_mips64r1 | \
|
|
|
|
+ cpu_has_mips64r2 | cpu_has_mips64r6)
|
|
|
|
+
|
|
|
|
+/* MIPSR2 and MIPSR6 have a lot of similarities */
|
|
|
|
+#define cpu_has_mips_r2_r6 (cpu_has_mips_r2 | cpu_has_mips_r6)
|
|
|
|
|
|
#ifndef cpu_has_mips_r2_exec_hazard
|
|
#ifndef cpu_has_mips_r2_exec_hazard
|
|
-#define cpu_has_mips_r2_exec_hazard cpu_has_mips_r2
|
|
|
|
|
|
+#define cpu_has_mips_r2_exec_hazard (cpu_has_mips_r2 | cpu_has_mips_r6)
|
|
#endif
|
|
#endif
|
|
|
|
|
|
/*
|
|
/*
|