|
@@ -24,4 +24,17 @@
|
|
#error "microMIPS compilation unsupported with GCC older than 4.9"
|
|
#error "microMIPS compilation unsupported with GCC older than 4.9"
|
|
#endif
|
|
#endif
|
|
|
|
|
|
|
|
+#ifdef CONFIG_CPU_MIPSR6
|
|
|
|
+#define MIPS_ISA_LEVEL "mips64r6"
|
|
|
|
+#define MIPS_ISA_ARCH_LEVEL MIPS_ISA_LEVEL
|
|
|
|
+#define MIPS_ISA_LEVEL_RAW mips64r6
|
|
|
|
+#define MIPS_ISA_ARCH_LEVEL_RAW MIPS_ISA_LEVEL_RAW
|
|
|
|
+#else
|
|
|
|
+/* MIPS64 is a superset of MIPS32 */
|
|
|
|
+#define MIPS_ISA_LEVEL "mips64r2"
|
|
|
|
+#define MIPS_ISA_ARCH_LEVEL "arch=r4000"
|
|
|
|
+#define MIPS_ISA_LEVEL_RAW mips64r2
|
|
|
|
+#define MIPS_ISA_ARCH_LEVEL_RAW MIPS_ISA_LEVEL_RAW
|
|
|
|
+#endif /* CONFIG_CPU_MIPSR6 */
|
|
|
|
+
|
|
#endif /* _ASM_COMPILER_H */
|
|
#endif /* _ASM_COMPILER_H */
|