[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v3 13/20] tests/tcg: add a configure compiler check for ARMv8.1 a
From: |
Alex Bennée |
Subject: |
[PATCH v3 13/20] tests/tcg: add a configure compiler check for ARMv8.1 and SVE |
Date: |
Wed, 11 Dec 2019 17:05:13 +0000 |
We will need this for some tests later. The docker images already
support it by default.
Signed-off-by: Alex Bennée <address@hidden>
---
tests/tcg/configure.sh | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/tests/tcg/configure.sh b/tests/tcg/configure.sh
index 6c4a471aeae..79140db6684 100755
--- a/tests/tcg/configure.sh
+++ b/tests/tcg/configure.sh
@@ -214,6 +214,20 @@ for target in $target_list; do
echo "CROSS_CC_GUEST_STATIC=y" >> $config_target_mak
fi
echo "CROSS_CC_GUEST=$target_compiler" >> $config_target_mak
+
+ # Test for compiler features for optional tests. We only do this
+ # for cross compilers because ensuring the docker containers based
+ # compilers is a requirememt for adding a new test that needs a
+ # compiler feature.
+ case $target in
+ aarch64-*)
+ if do_compiler "$target_compiler" $target_compiler_cflags \
+ -march=armv8.1-a+sve -o $TMPE $TMPC; then
+ echo "CROSS_CC_HAS_SVE=y" >> $config_target_mak
+ fi
+ ;;
+ esac
+
enabled_cross_compilers="$enabled_cross_compilers $target_compiler"
got_cross_cc=yes
break
--
2.20.1
- Re: [PATCH v3 06/20] target/arm: use gdb_get_reg helpers, (continued)
- [PATCH v3 03/20] gdbstub: move str_buf to GDBState and use GString, Alex Bennée, 2019/12/11
- [PATCH v3 07/20] target/m68k: use gdb_get_reg helpers, Alex Bennée, 2019/12/11
- [PATCH v3 10/20] target/arm: explicitly encode regnum in our XML, Alex Bennée, 2019/12/11
- [PATCH v3 11/20] target/arm: default SVE length to 64 bytes for linux-user, Alex Bennée, 2019/12/11
- [PATCH v3 09/20] target/arm: prepare for multiple dynamic XMLs, Alex Bennée, 2019/12/11
- [PATCH v3 19/20] tests/tcg/aarch64: add SVE iotcl test, Alex Bennée, 2019/12/11
- [PATCH v3 13/20] tests/tcg: add a configure compiler check for ARMv8.1 and SVE,
Alex Bennée <=
- [PATCH v3 02/20] gdbstub: stop passing GDBState * around and use global, Alex Bennée, 2019/12/11
- [PATCH v3 08/20] gdbstub: extend GByteArray to read register helpers, Alex Bennée, 2019/12/11
- [PATCH v3 15/20] tests/tcg/aarch64: userspace system register test, Alex Bennée, 2019/12/11
- [PATCH v3 14/20] target/arm: don't bother with id_aa64pfr0_read for USER_ONLY, Alex Bennée, 2019/12/11
- [PATCH v3 16/20] tests/tcg: ensure we re-configure if configure.sh is updated, Alex Bennée, 2019/12/11