From 05b1cee7401bdeffb5be6a0c9bac55650b964d72 Mon Sep 17 00:00:00 2001 From: Alastair McKinstry Date: Fri, 21 Oct 2016 18:01:25 +0000 Subject: [PATCH] mips-detection Gbp-Pq: Name mips-detection.diff --- config/opal_config_asm.m4 | 9 +++++++-- configure | 9 +++++++-- 2 files changed, 14 insertions(+), 4 deletions(-) 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 -- 2.30.2