[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v4 13/21] tests/tcg: add a configure compiler check for ARMv8.1 a
From: |
Alex Bennée |
Subject: |
[PATCH v4 13/21] tests/tcg: add a configure compiler check for ARMv8.1 and SVE |
Date: |
Fri, 20 Dec 2019 12:04:30 +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 210e68396f2..e0d1fbb182f 100755
--- a/tests/tcg/configure.sh
+++ b/tests/tcg/configure.sh
@@ -216,6 +216,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
- [PATCH v4 09/21] target/arm: prepare for multiple dynamic XMLs, (continued)
- [PATCH v4 09/21] target/arm: prepare for multiple dynamic XMLs, Alex Bennée, 2019/12/20
- [PATCH v4 17/21] tests/tcg/aarch64: add a gdbstub testcase for SVE registers, Alex Bennée, 2019/12/20
- [PATCH v4 16/21] tests/guest-debug: add a simple test runner, Alex Bennée, 2019/12/20
- [PATCH v4 08/21] gdbstub: extend GByteArray to read register helpers, Alex Bennée, 2019/12/20
- [PATCH v4 18/21] tests/tcg/aarch64: add SVE iotcl test, Alex Bennée, 2019/12/20
- [PATCH v4 11/21] target/arm: default SVE length to 64 bytes for linux-user, Alex Bennée, 2019/12/20
- [PATCH v4 12/21] target/arm: generate xml description of our SVE registers, Alex Bennée, 2019/12/20
- [PATCH v4 15/21] tests/tcg/aarch64: userspace system register test, Alex Bennée, 2019/12/20
- [PATCH v4 14/21] target/arm: don't bother with id_aa64pfr0_read for USER_ONLY, Alex Bennée, 2019/12/20
- [PATCH v4 13/21] tests/tcg: add a configure compiler check for ARMv8.1 and SVE,
Alex Bennée <=
- [PATCH v4 19/21] tests/tcg/aarch64: add test-sve-ioctl guest-debug test, Alex Bennée, 2019/12/20
- [PATCH v4 21/21] gdbstub: do not split gdb_monitor_write payload, Alex Bennée, 2019/12/20
- [PATCH v4 20/21] gdbstub: change GDBState.last_packet to GByteArray, Alex Bennée, 2019/12/20