chiark / gitweb /
Add STRESSAPPTEST_CPU_AARCH64 defintion for aarch64 CPU
authorWei Huang <wei@redhat.com>
Tue, 21 Nov 2017 04:40:54 +0000 (23:40 -0500)
committerWei Huang <wei@redhat.com>
Tue, 21 Nov 2017 05:06:56 +0000 (23:06 -0600)
This patch adds a new macro, STRESSAPPTEST_CPU_AARCH64, for aarch64 CPUs.
The file stressapptest_config.h.in is also refreshed using autoheader.

Signed-off-by: Wei Huang <wei@redhat.com>
configure
configure.ac
src/stressapptest_config.h.in

index 97d2c3821a2cb67c98760249c9316e581908e090..985b54c4b48ad5e0f533709ee7ccdc76bb5d6fae 100755 (executable)
--- a/configure
+++ b/configure
@@ -2459,10 +2459,16 @@ $as_echo "#define STRESSAPPTEST_CPU_PPC /**/" >>confdefs.h
 
 $as_echo "#define STRESSAPPTEST_CPU_ARMV7A /**/" >>confdefs.h
 
+     ;; #(
+  *aarch64*) :
+
+
+$as_echo "#define STRESSAPPTEST_CPU_AARCH64 /**/" >>confdefs.h
+
      ;; #(
   *) :
-    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unsupported CPU: $host_cpu! Try x86_64, i686, powerpc, or armv7a" >&5
-$as_echo "$as_me: WARNING: Unsupported CPU: $host_cpu! Try x86_64, i686, powerpc, or armv7a" >&2;}
+    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unsupported CPU: $host_cpu! Try x86_64, i686, powerpc, armv7a, or aarch64" >&5
+$as_echo "$as_me: WARNING: Unsupported CPU: $host_cpu! Try x86_64, i686, powerpc, armv7a, or aarch64" >&2;}
  ;;
 esac
 
index 2b20a48471304e4beea0c6193cf334a6c184223b..06b586850f3fe675de33be4b35dd947f4aab3474 100644 (file)
@@ -31,7 +31,11 @@ AS_CASE(["$host_cpu"],
     AC_DEFINE([STRESSAPPTEST_CPU_ARMV7A],[],
               [Defined if the target CPU is armv7a])
     ], 
-  [AC_MSG_WARN([Unsupported CPU: $host_cpu! Try x86_64, i686, powerpc, or armv7a])]
+  [*aarch64*], [
+    AC_DEFINE([STRESSAPPTEST_CPU_AARCH64],[],
+              [Defined if the target CPU is aarch64])
+    ],
+[AC_MSG_WARN([Unsupported CPU: $host_cpu! Try x86_64, i686, powerpc, armv7a, or aarch64])]
 )
 
 ## The following allows like systems to share settings. This is not meant to
index 5412df40e8a9b1f02f0584b28d0628df464b4b39..4ab0ec87804ba14ad6085c833dc31686090acaa5 100644 (file)
 /* Define to 1 if strerror_r returns char *. */
 #undef STRERROR_R_CHAR_P
 
+/* Defined if the target CPU is aarch64 */
+#undef STRESSAPPTEST_CPU_AARCH64
+
 /* Defined if the target CPU is armv7a */
 #undef STRESSAPPTEST_CPU_ARMV7A