lkml.org 
[lkml]   [2017]   [Apr]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 3.18 26/47] MIPS: asm: compiler: Add new macros to set ISA and arch asm annotations
    Date
    3.18-stable review patch.  If anyone has any objections, please let me know.

    ------------------

    From: Markos Chandras <markos.chandras@imgtec.com>

    commit be5136988e25ae0dc8379fcb937efc63d87aba9e upstream.

    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>
    Cc: Arnd Bergmann <arnd@arndb.de>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

    ---
    arch/mips/include/asm/compiler.h | 13 +++++++++++++
    1 file changed, 13 insertions(+)

    --- a/arch/mips/include/asm/compiler.h
    +++ b/arch/mips/include/asm/compiler.h
    @@ -16,4 +16,17 @@
    #define GCC_REG_ACCUM "accum"
    #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 */

    \
     
     \ /
      Last update: 2017-04-28 10:46    [W:3.065 / U:1.488 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site