diff options
author | Markos Chandras <markos.chandras@imgtec.com> | 2014-11-18 10:02:32 -0500 |
---|---|---|
committer | Markos Chandras <markos.chandras@imgtec.com> | 2015-02-17 10:37:14 -0500 |
commit | be5136988e25ae0dc8379fcb937efc63d87aba9e (patch) | |
tree | c948e2a2428578e8b25490775a66ff0a573bb993 /arch | |
parent | a168b8f1cde6588ff7a67699fa11e01bc77a5ddd (diff) |
MIPS: asm: compiler: Add new macros to set ISA and arch asm annotations
There are certain places where the code uses .set mips32 or .set mips64
or .set arch=r4000. In preparation of MIPS R6 support, and in order to
use as less #ifdefs as possible, we define new macros to set similar
annotations for MIPS R6.
Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/mips/include/asm/compiler.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/arch/mips/include/asm/compiler.h b/arch/mips/include/asm/compiler.h index c73815e0123a..10b642f55eb7 100644 --- a/arch/mips/include/asm/compiler.h +++ b/arch/mips/include/asm/compiler.h | |||
@@ -24,4 +24,17 @@ | |||
24 | #error "microMIPS compilation unsupported with GCC older than 4.9" | 24 | #error "microMIPS compilation unsupported with GCC older than 4.9" |
25 | #endif | 25 | #endif |
26 | 26 | ||
27 | #ifdef CONFIG_CPU_MIPSR6 | ||
28 | #define MIPS_ISA_LEVEL "mips64r6" | ||
29 | #define MIPS_ISA_ARCH_LEVEL MIPS_ISA_LEVEL | ||
30 | #define MIPS_ISA_LEVEL_RAW mips64r6 | ||
31 | #define MIPS_ISA_ARCH_LEVEL_RAW MIPS_ISA_LEVEL_RAW | ||
32 | #else | ||
33 | /* MIPS64 is a superset of MIPS32 */ | ||
34 | #define MIPS_ISA_LEVEL "mips64r2" | ||
35 | #define MIPS_ISA_ARCH_LEVEL "arch=r4000" | ||
36 | #define MIPS_ISA_LEVEL_RAW mips64r2 | ||
37 | #define MIPS_ISA_ARCH_LEVEL_RAW MIPS_ISA_LEVEL_RAW | ||
38 | #endif /* CONFIG_CPU_MIPSR6 */ | ||
39 | |||
27 | #endif /* _ASM_COMPILER_H */ | 40 | #endif /* _ASM_COMPILER_H */ |