|
@@ -110,9 +110,15 @@
|
|
|
#ifndef cpu_has_smartmips
|
|
#ifndef cpu_has_smartmips
|
|
|
#define cpu_has_smartmips (cpu_data[0].ases & MIPS_ASE_SMARTMIPS)
|
|
#define cpu_has_smartmips (cpu_data[0].ases & MIPS_ASE_SMARTMIPS)
|
|
|
#endif
|
|
#endif
|
|
|
|
|
+
|
|
|
#ifndef cpu_has_rixi
|
|
#ifndef cpu_has_rixi
|
|
|
-#define cpu_has_rixi (cpu_data[0].options & MIPS_CPU_RIXI)
|
|
|
|
|
|
|
+# ifdef CONFIG_64BIT
|
|
|
|
|
+# define cpu_has_rixi (cpu_data[0].options & MIPS_CPU_RIXI)
|
|
|
|
|
+# else /* CONFIG_32BIT */
|
|
|
|
|
+# define cpu_has_rixi ((cpu_data[0].options & MIPS_CPU_RIXI) && !cpu_has_64bits)
|
|
|
|
|
+# endif
|
|
|
#endif
|
|
#endif
|
|
|
|
|
+
|
|
|
#ifndef cpu_has_mmips
|
|
#ifndef cpu_has_mmips
|
|
|
# ifdef CONFIG_SYS_SUPPORTS_MICROMIPS
|
|
# ifdef CONFIG_SYS_SUPPORTS_MICROMIPS
|
|
|
# define cpu_has_mmips (cpu_data[0].options & MIPS_CPU_MICROMIPS)
|
|
# define cpu_has_mmips (cpu_data[0].options & MIPS_CPU_MICROMIPS)
|
|
@@ -120,6 +126,7 @@
|
|
|
# define cpu_has_mmips 0
|
|
# define cpu_has_mmips 0
|
|
|
# endif
|
|
# endif
|
|
|
#endif
|
|
#endif
|
|
|
|
|
+
|
|
|
#ifndef cpu_has_vtag_icache
|
|
#ifndef cpu_has_vtag_icache
|
|
|
#define cpu_has_vtag_icache (cpu_data[0].icache.flags & MIPS_CACHE_VTAG)
|
|
#define cpu_has_vtag_icache (cpu_data[0].icache.flags & MIPS_CACHE_VTAG)
|
|
|
#endif
|
|
#endif
|