From 8345145a97f226a2f1e403d6638527d69e446c08 Mon Sep 17 00:00:00 2001 From: Wei Huang Date: Mon, 20 Nov 2017 23:40:54 -0500 Subject: [PATCH] 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 --- configure | 10 ++++++++-- configure.ac | 6 +++++- src/stressapptest_config.h.in | 3 +++ 3 files changed, 16 insertions(+), 3 deletions(-) diff --git a/configure b/configure index 97d2c38..985b54c 100755 --- 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 diff --git a/configure.ac b/configure.ac index 2b20a48..06b5868 100644 --- a/configure.ac +++ b/configure.ac @@ -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 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 -- 2.30.2