Skip to content

Commit d2dd27b

Browse files
committed
asm: remove support for Sparc v9
This commit removes the specialized support for Sparc v9 as the architecture is unsupported. The architecture will continue to work without CMA and using the GCC built-in atomic support. Signed-off-by: Nathan Hjelm <[email protected]>
1 parent 038dcad commit d2dd27b

File tree

9 files changed

+0
-394
lines changed

9 files changed

+0
-394
lines changed

config/opal_config_asm.m4

Lines changed: 0 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -926,29 +926,6 @@ AC_DEFUN([OPAL_CHECK_POWERPC_64BIT],[
926926
])dnl
927927

928928

929-
dnl #################################################################
930-
dnl
931-
dnl OPAL_CHECK_SPARCV8PLUS
932-
dnl
933-
dnl #################################################################
934-
AC_DEFUN([OPAL_CHECK_SPARCV8PLUS],[
935-
AC_MSG_CHECKING([if have Sparc v8+/v9 support])
936-
sparc_result=0
937-
OPAL_TRY_ASSEMBLE([$opal_cv_asm_text
938-
casa [%o0] 0x80, %o1, %o2],
939-
[sparc_result=1],
940-
[sparc_result=0])
941-
if test "$sparc_result" = "1" ; then
942-
AC_MSG_RESULT([yes])
943-
ifelse([$1],,:,[$1])
944-
else
945-
AC_MSG_RESULT([no])
946-
ifelse([$2],,:,[$2])
947-
fi
948-
949-
unset sparc_result
950-
])dnl
951-
952929
dnl #################################################################
953930
dnl
954931
dnl OPAL_CHECK_CMPXCHG16B
@@ -1214,34 +1191,6 @@ AC_DEFUN([OPAL_CONFIG_ASM],[
12141191
fi
12151192
OPAL_GCC_INLINE_ASSIGN='"1: li %0,0" : "=&r"(ret)'
12161193
;;
1217-
sparc*-*)
1218-
# SPARC v9 (and above) are the only ones with 64bit support
1219-
# if compiling 32 bit, see if we are v9 (aka v8plus) or
1220-
# earlier (casa is v8+/v9).
1221-
if test "$ac_cv_sizeof_long" = "4" ; then
1222-
have_v8plus=0
1223-
OPAL_CHECK_SPARCV8PLUS([have_v8plus=1])
1224-
if test "$have_v8plus" = "0" ; then
1225-
OPAL_ASM_SUPPORT_64BIT=0
1226-
opal_cv_asm_arch="SPARC"
1227-
AC_MSG_WARN([Sparc v8 target is not supported in this release of Open MPI.])
1228-
AC_MSG_WARN([You must specify the target architecture v8plus to compile])
1229-
AC_MSG_WARN([Open MPI in 32 bit mode on Sparc processors (see the README).])
1230-
AC_MSG_ERROR([Can not continue.])
1231-
else
1232-
OPAL_ASM_SUPPORT_64BIT=1
1233-
opal_cv_asm_arch="SPARCV9_32"
1234-
fi
1235-
1236-
elif test "$ac_cv_sizeof_long" = "8" ; then
1237-
OPAL_ASM_SUPPORT_64BIT=1
1238-
opal_cv_asm_arch="SPARCV9_64"
1239-
else
1240-
AC_MSG_ERROR([Could not determine Sparc word size: $ac_cv_sizeof_long])
1241-
fi
1242-
OPAL_GCC_INLINE_ASSIGN='"mov 0,%0" : "=&r"(ret)'
1243-
;;
1244-
12451194
*)
12461195
if test $opal_cv_have___atomic = "yes" ; then
12471196
opal_cv_asm_builtin="BUILTIN_GCC"

opal/include/opal/sys/Makefile.am

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,4 @@ include opal/sys/arm/Makefile.am
3838
include opal/sys/arm64/Makefile.am
3939
include opal/sys/ia32/Makefile.am
4040
include opal/sys/powerpc/Makefile.am
41-
include opal/sys/sparcv9/Makefile.am
4241
include opal/sys/gcc_builtin/Makefile.am

opal/include/opal/sys/architecture.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,6 @@
3636
#define OPAL_X86_64 0030
3737
#define OPAL_POWERPC32 0050
3838
#define OPAL_POWERPC64 0051
39-
#define OPAL_SPARC 0060
40-
#define OPAL_SPARCV9_32 0061
41-
#define OPAL_SPARCV9_64 0062
4239
#define OPAL_ARM 0100
4340
#define OPAL_ARM64 0101
4441
#define OPAL_BUILTIN_GCC 0202

opal/include/opal/sys/atomic.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -180,12 +180,6 @@ enum {
180180
#include "opal/sys/powerpc/atomic.h"
181181
#elif OPAL_ASSEMBLY_ARCH == OPAL_POWERPC64
182182
#include "opal/sys/powerpc/atomic.h"
183-
#elif OPAL_ASSEMBLY_ARCH == OPAL_SPARC
184-
#include "opal/sys/sparc/atomic.h"
185-
#elif OPAL_ASSEMBLY_ARCH == OPAL_SPARCV9_32
186-
#include "opal/sys/sparcv9/atomic.h"
187-
#elif OPAL_ASSEMBLY_ARCH == OPAL_SPARCV9_64
188-
#include "opal/sys/sparcv9/atomic.h"
189183
#endif
190184

191185
#ifndef DOXYGEN

opal/include/opal/sys/sparcv9/Makefile.am

Lines changed: 0 additions & 23 deletions
This file was deleted.

opal/include/opal/sys/sparcv9/atomic.h

Lines changed: 0 additions & 202 deletions
This file was deleted.

opal/include/opal/sys/sparcv9/timer.h

Lines changed: 0 additions & 67 deletions
This file was deleted.

0 commit comments

Comments
 (0)