Add STRESSAPPTEST_CPU_AARCH64 defintion for aarch64 CPU
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>
diff --git a/configure b/configure
index 97d2c38..985b54c 100755
--- a/configure
+++ b/configure
@@ -2460,9 +2460,15 @@
$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
diff --git a/configure.ac b/configure.ac
index 2b20a48..06b5868 100644
--- a/configure.ac
+++ b/configure.ac
@@ -31,7 +31,11 @@
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
diff --git a/src/stressapptest_config.h.in b/src/stressapptest_config.h.in
index 5412df4..4ab0ec8 100644
--- a/src/stressapptest_config.h.in
+++ b/src/stressapptest_config.h.in
@@ -172,6 +172,9 @@
/* 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