[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 13/27] qemu/bswap: Use compiler __builtin_bswap() on FreeBSD
From: |
Thomas Huth |
Subject: |
[PULL 13/27] qemu/bswap: Use compiler __builtin_bswap() on FreeBSD |
Date: |
Tue, 31 Jan 2023 11:11:51 +0100 |
From: Philippe Mathieu-Daudé <philmd@redhat.com>
Since commit efc6c070aca ("configure: Add a test for the minimum
compiler version") the minimum compiler version required for GCC
is 4.8, which supports __builtin_bswap().
Remove the FreeBSD specific ifdef'ry.
This reverts commit de03c3164accc21311c39327601fcdd95da301f3
("bswap: Fix build on FreeBSD 10.0").
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20230111163147.71761-6-philmd@linaro.org>
Signed-off-by: Thomas Huth <thuth@redhat.com>
---
include/qemu/bswap.h | 2 --
1 file changed, 2 deletions(-)
diff --git a/include/qemu/bswap.h b/include/qemu/bswap.h
index 8cd5a2b02e..32d5cdec27 100644
--- a/include/qemu/bswap.h
+++ b/include/qemu/bswap.h
@@ -4,8 +4,6 @@
#ifdef CONFIG_MACHINE_BSWAP_H
# include <sys/endian.h>
# include <machine/bswap.h>
-#elif defined(__FreeBSD__)
-# include <sys/endian.h>
# else
#define BSWAP_FROM_FALLBACKS
#endif /* ! CONFIG_MACHINE_BSWAP_H */
--
2.31.1
- [PULL 00/27] qtest and misc patches, Thomas Huth, 2023/01/31
- [PULL 01/27] tests/qtest: netdev: test stream and dgram backends, Thomas Huth, 2023/01/31
- [PULL 06/27] travis.yml: Use the libfdt from the distro instead of the submodule, Thomas Huth, 2023/01/31
- [PULL 09/27] qemu/bswap: Replace bswapXX() by compiler __builtin_bswap(), Thomas Huth, 2023/01/31
- [PULL 02/27] tests/qtest/qom-test: Stop spamming the test log, Thomas Huth, 2023/01/31
- [PULL 03/27] tests/qtest/bios-tables-test: Make the test less verbose by default, Thomas Huth, 2023/01/31
- [PULL 05/27] configs/targets/nios2-softmmu: Add TARGET_NEED_FDT=y to the nios2 config, Thomas Huth, 2023/01/31
- [PULL 15/27] MAINTAINERS: Abort HAXM maintenance, Thomas Huth, 2023/01/31
- [PULL 13/27] qemu/bswap: Use compiler __builtin_bswap() on FreeBSD,
Thomas Huth <=
- [PULL 17/27] tests/tcg: Do not build/run TCG tests if TCG is disabled, Thomas Huth, 2023/01/31
- [PULL 08/27] tests/docker/dockerfiles: Add libfdt to the i386 and to the riscv64 container, Thomas Huth, 2023/01/31
- [PULL 20/27] tests/qtest/vnc-display-test: Disable on Darwin, Thomas Huth, 2023/01/31
- [PULL 11/27] qemu/bswap: Remove <byteswap.h> dependency, Thomas Huth, 2023/01/31
- [PULL 14/27] qemu/bswap: Use compiler __builtin_bswap() on NetBSD, Thomas Huth, 2023/01/31
- [PULL 10/27] qemu/bswap: Replace bswapXXs() by compiler __builtin_bswap(), Thomas Huth, 2023/01/31
- [PULL 16/27] docs/about/deprecated: Mark HAXM in QEMU as deprecated, Thomas Huth, 2023/01/31
- [PULL 19/27] tests/qtest/vnc-display-test: Use the 'none' machine, Thomas Huth, 2023/01/31
- [PULL 21/27] tests/qtest/boot-serial-test: Constify tests[] array, Thomas Huth, 2023/01/31
- [PULL 12/27] qemu/bswap: Use compiler __builtin_bswap() on Haiku, Thomas Huth, 2023/01/31