From: Alastair McKinstry Date: Mon, 12 Sep 2016 06:54:45 +0000 (+0000) Subject: mips-detection X-Git-Tag: archive/raspbian/2.1.1-7+rpi1~1^2^2^2^2^2^2~8 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=f309bfc879450050ef7f8b4992e00b3852cb3e4f;p=openmpi.git mips-detection Gbp-Pq: Name mips-detection.diff --- diff --git a/config/opal_config_asm.m4 b/config/opal_config_asm.m4 index 5188cb42..19a64052 100644 --- a/config/opal_config_asm.m4 +++ b/config/opal_config_asm.m4 @@ -946,8 +946,13 @@ AC_DEFUN([OPAL_CONFIG_ASM],[ OPAL_GCC_INLINE_ASSIGN='"mov %0, #0" : "=&r"(ret)' ;; - mips-*|mips64*) - # Should really find some way to make sure that we are on + mips-*|mipsel-*) + opal_cv_asm_arch="MIPS" + OPAL_ASM_SUPPORT_64BIT=0 + OPAL_GCC_INLINE_ASSIGN='"or %0,[$]0,[$]0" : "=&r"(ret)' + ;; + + mips64-*|mips64el-*) # a MIPS III machine (r4000 and later) opal_cv_asm_arch="MIPS" OPAL_ASM_SUPPORT_64BIT=1 diff --git a/configure b/configure index 85d3f3b9..80cdb9f3 100755 --- a/configure +++ b/configure @@ -31956,8 +31956,13 @@ _ACEOF OPAL_GCC_INLINE_ASSIGN='"mov %0, #0" : "=&r"(ret)' ;; - mips-*|mips64*) - # Should really find some way to make sure that we are on + mips-*|mipsel-*) + opal_cv_asm_arch="MIPS" + OPAL_ASM_SUPPORT_64BIT=0 + OPAL_GCC_INLINE_ASSIGN='"or %0,$0,$0" : "=&r"(ret)' + ;; + + mips64-*|mips64el-*) # a MIPS III machine (r4000 and later) opal_cv_asm_arch="MIPS" OPAL_ASM_SUPPORT_64BIT=1