mips-detection
authorAlastair McKinstry <mckinstry@debian.org>
Mon, 12 Sep 2016 06:54:45 +0000 (06:54 +0000)
committerAlastair McKinstry <mckinstry@debian.org>
Mon, 12 Sep 2016 06:54:45 +0000 (06:54 +0000)
Gbp-Pq: Name mips-detection.diff

config/opal_config_asm.m4
configure

index 5188cb42cd8d0841de06862e44166bd12c531278..19a64052377063d03901b08f6582722d8225348c 100644 (file)
@@ -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
index 85d3f3b9fb418e84f4ee29c2d31d712ddd44e7e7..80cdb9f3ee57d47d1312b43428d58ea9f2c5e81d 100755 (executable)
--- 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