12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- #ifndef _ASM_COMPILER_H
- #define _ASM_COMPILER_H
- #if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
- #define GCC_IMM_ASM() "n"
- #define GCC_REG_ACCUM "$0"
- #else
- #define GCC_IMM_ASM() "rn"
- #define GCC_REG_ACCUM "accum"
- #endif
- #ifdef CONFIG_CPU_MIPSR6
- #define GCC_OFF_SMALL_ASM() "ZC"
- #else
- #ifndef CONFIG_CPU_MICROMIPS
- #define GCC_OFF_SMALL_ASM() "R"
- #elif __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 9)
- #define GCC_OFF_SMALL_ASM() "ZC"
- #else
- #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
- #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
- #endif
|