]> git.proxmox.com Git - mirror_qemu.git/commitdiff
Merge tag 'pull-tricore-20230208' of https://github.com/bkoppelmann/qemu into staging
authorPeter Maydell <peter.maydell@linaro.org>
Wed, 8 Feb 2023 13:28:26 +0000 (13:28 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Wed, 8 Feb 2023 13:28:26 +0000 (13:28 +0000)
tricore insn bugfixes for qemu 8.0

# -----BEGIN PGP SIGNATURE-----
#
# iQJTBAABCgA9FiEEbmNqfoPy3Qz6bm43CtLGOWtpyhQFAmPjZjUfHGtiYXN0aWFu
# QG1haWwudW5pLXBhZGVyYm9ybi5kZQAKCRAK0sY5a2nKFHBmD/9r8dgNWWMYdXrC
# PO9fNg1lk+zR9AfTBc7YonuNo/aRmoh48r36FCIKPVWIspyXaEpjyCUAA79Lmhw7
# XGRqDbosa7TNSyQgOfqKyxAc7uISRBSFIQocbTCKTcpwcBpOUhSQFMjwc4yj1HGE
# D7511nyPd4ekqTVzaLrXwWVIFdefW85F7DoXK2G5k7NyO1I2TBoFdbjosDff4cOu
# T0ZYPTmZoSvUgP80WUyQPcs0lKk56oFqFsgjtqhmhdGf4FNxxrIMHNhJeZJsHt6I
# aG1MZbVAyOAGXyLZmu6PFxVOckkoMMZMxXV6rMfgmztt8PxRcvzUu5DceovI2xt4
# OQb6b13XwHB2ShUCqM8eQAQyAUMrYdjVMu5gLsO5rpzcZz+2cZmUUGXtjZojLRzY
# m2IyCQIDjR6GlBnLqzD8lKWbW8c7v6bHnhyYZpy1K1I54/dsbia9Hl40v/Ebch5f
# CYfgJQFe5CfkyY+Ya9bItTf/cfcnmOKpKhmFy3r005BzbSVWJ+Ax3AXKuRey5MF7
# itHS2wVYq5Fap/SCS4slL/4u/Doo9DybwLRdTXtqMxUcl7WpyjA5L/W5VhJrDb+a
# F21uAtqaYf+0UHLmGOJRMx3LAf/YvvPQLYO8FmnfVoS6t6V+/B5/eyXPRwmX1mJC
# jLu6hzzX4kR9zZ7lNhOlv0d9vkt5Sg==
# =83AO
# -----END PGP SIGNATURE-----
# gpg: Signature made Wed 08 Feb 2023 09:07:01 GMT
# gpg:                using RSA key 6E636A7E83F2DD0CFA6E6E370AD2C6396B69CA14
# gpg:                issuer "kbastian@mail.uni-paderborn.de"
# gpg: Good signature from "Bastian Koppelmann <kbastian@mail.uni-paderborn.de>" [full]
# Primary key fingerprint: 6E63 6A7E 83F2 DD0C FA6E  6E37 0AD2 C639 6B69 CA14

* tag 'pull-tricore-20230208' of https://github.com/bkoppelmann/qemu:
  tests/tcg/tricore: Add test for ld.h
  target/tricore: Fix OPC1_16_SRO_LD_H translation
  tests/tcg/tricore: Add LD.BU tests
  target/tricore: Fix OPC2_32_BO_LD_BU_PREINC
  tests/tcg/tricore: Add OPC2_32_RRRR_DEXTR tests
  target/tricore: Fix OPC2_32_RRRR_DEXTR
  tests/tcg/tricore: Add tests for RRPW_DEXTR
  target/tricore: Fix RRPW_DEXTR
  tests/tcg/tricore: Add test for OPC2_32_RCRW_INSERT
  target/tricore: Fix OPC2_32_RCRW_INSERT translation
  tests/tcg/tricore: Add test for OPC2_32_RCRW_IMASK
  target/tricore: Fix OPC2_32_RCRW_IMASK translation

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
92 files changed:
accel/tcg/cpu-exec.c
audio/sndioaudio.c
backends/hostmem-epc.c
backends/tpm/tpm_emulator.c
backends/tpm/tpm_ioctl.h
block/export/vduse-blk.c
block/qapi.c
bsd-user/arm/signal.c
bsd-user/arm/target_arch_cpu.c
bsd-user/bsd-proc.h
bsd-user/freebsd/os-sys.c
bsd-user/i386/signal.c
bsd-user/i386/target_arch_cpu.c
bsd-user/main.c
bsd-user/qemu.h
bsd-user/strace.c
bsd-user/x86_64/signal.c
bsd-user/x86_64/target_arch_cpu.c
crypto/block-luks-priv.h
fsdev/p9array.h
hw/9pfs/9p.c
hw/acpi/piix4.c
hw/alpha/dp264.c
hw/arm/virt.c
hw/arm/xlnx-versal.c
hw/block/pflash_cfi01.c
hw/core/machine.c
hw/display/virtio-gpu-udmabuf.c
hw/hppa/machine.c
hw/hyperv/syndbg.c
hw/i2c/pmbus_device.c
hw/i386/acpi-build.c
hw/input/tsc210x.c
hw/loongarch/acpi-build.c
hw/misc/macio/cuda.c
hw/misc/macio/pmu.c
hw/net/xilinx_axienet.c
hw/ppc/ppc405_uc.c
hw/ppc/ppc440_bamboo.c
hw/ppc/spapr_drc.c
hw/rdma/vmw/pvrdma_dev_ring.c
hw/remote/machine.c
hw/remote/proxy-memory-listener.c
hw/remote/remote-obj.c
hw/rtc/mc146818rtc.c
hw/s390x/virtio-ccw-serial.c
hw/sensor/adm1272.c
hw/usb/dev-storage-bot.c
hw/usb/dev-storage-classic.c
include/block/graph-lock.h
include/block/write-threshold.h
include/hw/arm/fsl-imx6ul.h
include/hw/arm/fsl-imx7.h
include/hw/cxl/cxl_component.h
include/hw/cxl/cxl_host.h
include/hw/cxl/cxl_pci.h
include/hw/input/pl050.h
include/hw/misc/aspeed_lpc.h
include/hw/pci/pcie_doe.h
include/hw/tricore/triboard.h
include/qemu/async-teardown.h
include/qemu/dbus.h
include/qemu/host-utils.h
include/qemu/userfaultfd.h
include/sysemu/accel-blocker.h
include/sysemu/event-loop-base.h
migration/postcopy-ram.c
net/vmnet_int.h
qga/commands-posix.c
qga/cutils.c
qga/cutils.h
scripts/ci/org.centos/stream/8/build-environment.yml
scripts/ci/org.centos/stream/8/x86_64/configure
scripts/ci/setup/build-environment.yml
scripts/clean-includes
softmmu/dirtylimit.c
softmmu/runstate.c
softmmu/vl.c
target/hexagon/hex_arch_types.h
target/hexagon/mmvec/macros.h
target/loongarch/translate.c
target/mips/tcg/translate.c
target/nios2/translate.c
target/riscv/pmu.h
tcg/tci.c
tests/unit/test-cutils.c
tests/unit/test-seccomp.c
ui/gtk.c
ui/udmabuf.c
util/async-teardown.c
util/main-loop.c
util/oslib-posix.c

index 9c857eeb077157942f997690c85b356670515d26..5357608b144ebad70fb48552905ee7d25542c1cf 100644 (file)
@@ -28,7 +28,6 @@
 #include "exec/exec-all.h"
 #include "tcg/tcg.h"
 #include "qemu/atomic.h"
-#include "qemu/compiler.h"
 #include "qemu/timer.h"
 #include "qemu/rcu.h"
 #include "exec/log.h"
index 632b0e3825da7e283d1e713f54c9ecc30fc2b586..3fde01fdbd59a4432cdc67eb8d893d37b5578bb1 100644 (file)
@@ -14,9 +14,9 @@
  * to recording, which is what guest systems expect.
  */
 
+#include "qemu/osdep.h"
 #include <poll.h>
 #include <sndio.h>
-#include "qemu/osdep.h"
 #include "qemu/main-loop.h"
 #include "audio.h"
 #include "trace.h"
index 037292d2672f671535053d3e8e174b18ba769dec..4e162d6789e86dc0de4ff3086b6e383fea059be4 100644 (file)
@@ -9,9 +9,9 @@
  * This work is licensed under the terms of the GNU GPL, version 2 or later.
  * See the COPYING file in the top-level directory.
  */
-#include <sys/ioctl.h>
 
 #include "qemu/osdep.h"
+#include <sys/ioctl.h>
 #include "qom/object_interfaces.h"
 #include "qapi/error.h"
 #include "sysemu/hostmem.h"
index 67e7b212e3eb0d2a1fc6f0684baef668e12a8a11..d18144b92e9061149dc656e6ca15d6d3dfa680db 100644 (file)
@@ -35,7 +35,6 @@
 #include "sysemu/runstate.h"
 #include "sysemu/tpm_backend.h"
 #include "sysemu/tpm_util.h"
-#include "sysemu/runstate.h"
 #include "tpm_int.h"
 #include "tpm_ioctl.h"
 #include "migration/blocker.h"
index e506ef516057e4531ab8df43776e5bcabac660c3..b1d31768a6dee09524d1f1ec26a8bbbeb6b50c9f 100644 (file)
@@ -12,8 +12,6 @@
 # define __USE_LINUX_IOCTL_DEFS
 #endif
 
-#include <stdint.h>
-#include <sys/types.h>
 #ifndef _WIN32
 #include <sys/uio.h>
 #include <sys/ioctl.h>
index 350d6fdaf061fe40e4f4fb0dd17ec668cbc03ada..f7ae44e3ceac84a856a010fe5c101fdab166e9ea 100644 (file)
@@ -10,9 +10,9 @@
  * later.  See the COPYING file in the top-level directory.
  */
 
+#include "qemu/osdep.h"
 #include <sys/eventfd.h>
 
-#include "qemu/osdep.h"
 #include "qapi/error.h"
 #include "block/export.h"
 #include "qemu/error-report.h"
index d52f1ab614e4d6468f203174b952d6888ea55738..c84147849d641db9d13e69deb82c6318967917e3 100644 (file)
@@ -40,7 +40,6 @@
 #include "qapi/qmp/qstring.h"
 #include "qemu/qemu-print.h"
 #include "sysemu/block-backend.h"
-#include "qemu/cutils.h"
 
 BlockDeviceInfo *bdrv_block_device_info(BlockBackend *blk,
                                         BlockDriverState *bs,
index 2b1dd745d134cffef5f762b1b2d2015426be188a..97344075430b64a37987e43475bcca11f9c3ec51 100644 (file)
@@ -17,6 +17,7 @@
  *  along with this program; if not, see <http://www.gnu.org/licenses/>.
  */
 
+#include "qemu/osdep.h"
 #include "qemu.h"
 
 /*
index 02bf9149d54b038df463441f8936598f482d0c8d..fe38ae22107eb90299256ab1dfbf241b8fc97c67 100644 (file)
@@ -16,6 +16,8 @@
  *  You should have received a copy of the GNU General Public License
  *  along with this program; if not, see <http://www.gnu.org/licenses/>.
  */
+
+#include "qemu/osdep.h"
 #include "target_arch.h"
 
 void target_cpu_set_tls(CPUARMState *env, target_ulong newtls)
index 68b66e571d32717fe8e0112ee618c95b4aff6470..a1061bffb8f706fecd5d82fb81c57c549e2467b2 100644 (file)
 #ifndef BSD_PROC_H_
 #define BSD_PROC_H_
 
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <sys/time.h>
 #include <sys/resource.h>
-#include <unistd.h>
 
 /* exit(2) */
 static inline abi_long do_bsd_exit(void *cpu_env, abi_long arg1)
index 309e27b9d6349da1067699c5e1f9d27530882590..1676ec10f83b6b322bb2344331cee0a113a984b7 100644 (file)
@@ -17,6 +17,7 @@
  *  along with this program; if not, see <http://www.gnu.org/licenses/>.
  */
 
+#include "qemu/osdep.h"
 #include "qemu.h"
 #include "target_arch_sysarch.h"
 
index 5dd975ce56a7a42331ad8adbc16f0638175657c1..a3131047b8d044443abdc580160a41f6724a339a 100644 (file)
@@ -17,6 +17,7 @@
  *  along with this program; if not, see <http://www.gnu.org/licenses/>.
  */
 
+#include "qemu/osdep.h"
 #include "qemu.h"
 
 /*
index d349e4529977174a717308135a467ebba7cde405..2a3af2ddef56535579a84039d7d7fed025e13666 100644 (file)
@@ -17,9 +17,8 @@
  *  along with this program; if not, see <http://www.gnu.org/licenses/>.
  */
 
-#include <sys/types.h>
-
 #include "qemu/osdep.h"
+
 #include "cpu.h"
 #include "qemu.h"
 #include "qemu/timer.h"
index 6f09180d65418dcca97b3cc5069f3b130bf4ae63..41290e16f98efce681dbd9b8c849dadea50495d1 100644 (file)
  *  along with this program; if not, see <http://www.gnu.org/licenses/>.
  */
 
-#include <sys/types.h>
-#include <sys/time.h>
+#include "qemu/osdep.h"
 #include <sys/resource.h>
 #include <sys/sysctl.h>
 
-#include "qemu/osdep.h"
 #include "qemu/help-texts.h"
 #include "qemu/units.h"
 #include "qemu/accel.h"
index be6105385e8c4f71d46e8375b3057e5bd40abb76..0ceecfb6dfa82f63c661280e682008e12ebbe71a 100644 (file)
@@ -17,7 +17,6 @@
 #ifndef QEMU_H
 #define QEMU_H
 
-#include "qemu/osdep.h"
 #include "cpu.h"
 #include "qemu/units.h"
 #include "exec/cpu_ldst.h"
index a77d10dd6b610b619d1684590b62af0c4202c82e..96499751eb081a11af353014f9cca3a1573a9215 100644 (file)
@@ -20,7 +20,6 @@
 #include <sys/select.h>
 #include <sys/syscall.h>
 #include <sys/ioccom.h>
-#include <ctype.h>
 
 #include "qemu.h"
 
index c3875bc4c6a7ee8a19fd2675eb00bee1bede9dd0..46cb865180e00d0cb13a89e56792e5adf8630d7e 100644 (file)
@@ -16,6 +16,7 @@
  *  along with this program; if not, see <http://www.gnu.org/licenses/>.
  */
 
+#include "qemu/osdep.h"
 #include "qemu.h"
 
 /*
index be7bd10720044567f8915ee27e99fe33937eaaaf..1d32f18907be4ac8d101be55e1a996aae4d53b08 100644 (file)
@@ -17,9 +17,8 @@
  *  along with this program; if not, see <http://www.gnu.org/licenses/>.
  */
 
-#include <sys/types.h>
-
 #include "qemu/osdep.h"
+
 #include "cpu.h"
 #include "qemu.h"
 #include "qemu/timer.h"
index dc2dd14e520cc6c328072baba2362f338befd243..8fc967afcb002fff4960dfd4bac3f6abee52820b 100644 (file)
@@ -18,7 +18,6 @@
  *
  */
 
-#include "qemu/osdep.h"
 #include "qapi/error.h"
 #include "qemu/bswap.h"
 
index 90e83a7c7b5453c6198c169a39f0601777ee53d4..50a1b15fe973034289260b18b725924a2c121ab8 100644 (file)
@@ -27,8 +27,6 @@
 #ifndef QEMU_P9ARRAY_H
 #define QEMU_P9ARRAY_H
 
-#include "qemu/compiler.h"
-
 /**
  * P9Array provides a mechanism to access arrays in common C-style (e.g. by
  * square bracket [] operator) in conjunction with reference variables that
index 072cf67956a0371466db87f49febbdf0c84edef5..9621ec13416e71d7a906783514baed8cc05180fc 100644 (file)
@@ -19,8 +19,6 @@
 #include "qemu/osdep.h"
 #ifdef CONFIG_LINUX
 #include <linux/limits.h>
-#else
-#include <limits.h>
 #endif
 #include <glib/gprintf.h>
 #include "hw/virtio/virtio.h"
index 724294b37858f0ca1876afd1b387dde89f518b3a..eac2125abdda91542782c3a58acbb2b5d7a7c8fc 100644 (file)
@@ -34,7 +34,6 @@
 #include "sysemu/xen.h"
 #include "qapi/error.h"
 #include "qemu/range.h"
-#include "hw/acpi/pcihp.h"
 #include "hw/acpi/cpu_hotplug.h"
 #include "hw/acpi/cpu.h"
 #include "hw/hotplug.h"
index c502c8c62ae6e37ee30c1b055c3da3225540c9e2..4161f559a7bcfbc4117a4fdcd4af0eed71fda8e5 100644 (file)
@@ -18,7 +18,6 @@
 #include "net/net.h"
 #include "qemu/cutils.h"
 #include "qemu/datadir.h"
-#include "net/net.h"
 
 static uint64_t cpu_alpha_superpage_to_phys(void *opaque, uint64_t addr)
 {
index ba4772828858ed6736e97b8b367bcd048a64b4fb..75f28947de07f3c8173a7333d090b73ad3bcc64a 100644 (file)
@@ -33,7 +33,6 @@
 #include "qemu/units.h"
 #include "qemu/option.h"
 #include "monitor/qdev.h"
-#include "qapi/error.h"
 #include "hw/sysbus.h"
 #include "hw/arm/boot.h"
 #include "hw/arm/primecell.h"
index 57276e1506fe71edef688454097fb03e1caeb3b7..69b1b99e937178e859bd4e49c64a75a703a98321 100644 (file)
@@ -22,7 +22,6 @@
 #include "hw/misc/unimp.h"
 #include "hw/arm/xlnx-versal.h"
 #include "qemu/log.h"
-#include "hw/sysbus.h"
 
 #define XLNX_VERSAL_ACPU_TYPE ARM_CPU_TYPE_NAME("cortex-a72")
 #define XLNX_VERSAL_RCPU_TYPE ARM_CPU_TYPE_NAME("cortex-r5f")
index 36d68c70f6944f075094c378faff000feb383f62..3c066e340588289ed7eda486ae1f4d37a7140474 100644 (file)
@@ -45,7 +45,6 @@
 #include "qapi/error.h"
 #include "qemu/error-report.h"
 #include "qemu/bitops.h"
-#include "qemu/error-report.h"
 #include "qemu/host-utils.h"
 #include "qemu/log.h"
 #include "qemu/module.h"
index b5cd42cd8c9ce62ae207cf1512e518ab93b0eb6e..f73fc4c45c41eead1e2819f726b2c771629bc560 100644 (file)
@@ -39,7 +39,6 @@
 #include "exec/confidential-guest-support.h"
 #include "hw/virtio/virtio.h"
 #include "hw/virtio/virtio-pci.h"
-#include "qom/object_interfaces.h"
 
 GlobalProperty hw_compat_7_2[] = {
     { "virtio-mem", "x-early-migration", "false" },
index 8bdf4bac6e4b537b1e38dc384b59f8196c181b72..847fa4c0cc3214a4b1ba68325d12d45e4eefda2a 100644 (file)
@@ -21,7 +21,6 @@
 #include "exec/ramblock.h"
 #include "sysemu/hostmem.h"
 #include <sys/ioctl.h>
-#include <fcntl.h>
 #include <linux/memfd.h>
 #include "qemu/memfd.h"
 #include "standard-headers/linux/udmabuf.h"
index de1cc7ab7102a7bfff53c7dd56fc0402f3b5ca5b..7ac68c943f4061dbf734d5e0df674dc901dd8cb9 100644 (file)
@@ -28,7 +28,6 @@
 #include "qapi/error.h"
 #include "net/net.h"
 #include "qemu/log.h"
-#include "net/net.h"
 
 #define MIN_SEABIOS_HPPA_VERSION 6 /* require at least this fw version */
 
index 16d04cfdc66972333d8513908095d32d16a32575..94fe1b534ba5fdeb95a154c792ca75451616b513 100644 (file)
@@ -5,8 +5,8 @@
  * See the COPYING file in the top-level directory.
  */
 
-#include "qemu/ctype.h"
 #include "qemu/osdep.h"
+#include "qemu/ctype.h"
 #include "qemu/error-report.h"
 #include "qemu/main-loop.h"
 #include "qemu/sockets.h"
index 4071a88cfcd1a107a12041368787fa8f9de1b927..c3d604678454b9926307a25efbdb4358fba9df56 100644 (file)
@@ -8,7 +8,6 @@
 
 #include "qemu/osdep.h"
 #include <math.h>
-#include <string.h>
 #include "hw/i2c/pmbus_device.h"
 #include "migration/vmstate.h"
 #include "qemu/module.h"
index 145389aa58f23a8ff242a2d0a842278fdd4eb783..b67dcbbb37fa155ecfa44f9c4d63a1b4b813e7f5 100644 (file)
@@ -76,7 +76,6 @@
 
 #include "hw/acpi/hmat.h"
 #include "hw/acpi/viot.h"
-#include "hw/acpi/cxl.h"
 
 #include CONFIG_DEVICES
 
index fdd5ff87d946e0ae7d9f7c3d9e1b93ef49754040..7eae5989f76a3df579dc619c88d60c278d22a6df 100644 (file)
@@ -20,7 +20,6 @@
  */
 
 #include "qemu/osdep.h"
-#include "qemu/log.h"
 #include "hw/hw.h"
 #include "audio/audio.h"
 #include "qemu/timer.h"
index c2b237736d52336319225d2b639159f0e6380baf..f551296a0e07b959156d9d21f678849f48c6d6ff 100644 (file)
@@ -22,7 +22,6 @@
 /* Supported chipsets: */
 #include "hw/pci-host/ls7a.h"
 #include "hw/loongarch/virt.h"
-#include "hw/acpi/aml-build.h"
 
 #include "hw/acpi/utils.h"
 #include "hw/acpi/pci.h"
index 7208b90e1292a567fda4a5f4571c9436cd8ce785..6336dcb194828e9670a417a4427c448cd161d802 100644 (file)
@@ -28,7 +28,6 @@
 #include "hw/qdev-properties.h"
 #include "migration/vmstate.h"
 #include "hw/misc/macio/cuda.h"
-#include "qapi/error.h"
 #include "qemu/timer.h"
 #include "sysemu/runstate.h"
 #include "sysemu/rtc.h"
index 8575bc12647e1f7da138b0aa35bc20d627312921..58316d187135625b6e3c18f9b3358cf586e914e2 100644 (file)
@@ -33,7 +33,6 @@
 #include "migration/vmstate.h"
 #include "hw/irq.h"
 #include "hw/misc/macio/pmu.h"
-#include "qapi/error.h"
 #include "qemu/timer.h"
 #include "sysemu/runstate.h"
 #include "sysemu/rtc.h"
index 7e00965323c2669fda27c3d0abfe4aff036d18ff..5b19a01eaa2bfc89a354910ed3c9f36657886fe6 100644 (file)
@@ -31,7 +31,6 @@
 #include "net/net.h"
 #include "net/checksum.h"
 
-#include "hw/hw.h"
 #include "hw/irq.h"
 #include "hw/qdev-properties.h"
 #include "hw/stream.h"
index c973cfb04e4c60daec26dabbd9ddf1151e077145..0cc68178adf25a310fc0110c9eccc60859c428b5 100644 (file)
@@ -38,8 +38,6 @@
 #include "sysemu/sysemu.h"
 #include "exec/address-spaces.h"
 #include "hw/intc/ppc-uic.h"
-#include "hw/qdev-properties.h"
-#include "qapi/error.h"
 #include "trace.h"
 
 /*****************************************************************************/
index 81d71adf348bb800190a5942629d6dba3ee934e3..2880c81cb1f84788fbdfada7315a396bc77c09be 100644 (file)
@@ -13,7 +13,6 @@
 
 #include "qemu/osdep.h"
 #include "qemu/units.h"
-#include "qemu/error-report.h"
 #include "qemu/datadir.h"
 #include "qemu/error-report.h"
 #include "net/net.h"
index 4923435a8b5be8d7b79c90f748f144404cbcb1a9..b5c400a94d1cd8a72dba7e134b100fcd47fdbd33 100644 (file)
@@ -17,7 +17,6 @@
 #include "hw/ppc/spapr_drc.h"
 #include "qom/object.h"
 #include "migration/vmstate.h"
-#include "qapi/error.h"
 #include "qapi/qapi-events-qdev.h"
 #include "qapi/visitor.h"
 #include "qemu/error-report.h"
index 598e6adc5eb4eec4070442dc86a086bdc5feab93..30ce22a5be3ed95c5650f90d37ef2afe900ca377 100644 (file)
@@ -14,7 +14,6 @@
  */
 
 #include "qemu/osdep.h"
-#include "qemu/cutils.h"
 #include "hw/pci/pci.h"
 #include "cpu.h"
 #include "qemu/cutils.h"
index 519f855ec165cce0fd768aaeed5db7e471638cc4..fdc6c441bbd19565b7d2f72eee0baf15c4653ca1 100644 (file)
@@ -22,7 +22,6 @@
 #include "hw/remote/iohub.h"
 #include "hw/remote/iommu.h"
 #include "hw/qdev-core.h"
-#include "hw/remote/iommu.h"
 #include "hw/remote/vfio-user-obj.h"
 #include "hw/pci/msi.h"
 
index eb9918fe72bbba0b44e4f5a0d258de46a7f7bfa6..18d96a1d04dc9db60d049f51e46b3a96ad78c6af 100644 (file)
@@ -8,7 +8,6 @@
 
 #include "qemu/osdep.h"
 
-#include "qemu/compiler.h"
 #include "qemu/int128.h"
 #include "qemu/range.h"
 #include "exec/memory.h"
index 333e5ac44331295fa5e3497bc955051582320a14..65b6f7cc863f636204de0b7033b229b754994562 100644 (file)
@@ -12,7 +12,6 @@
 #include "qemu/error-report.h"
 #include "qemu/notify.h"
 #include "qom/object_interfaces.h"
-#include "hw/qdev-core.h"
 #include "io/channel.h"
 #include "hw/qdev-core.h"
 #include "hw/remote/machine.h"
index bc1192b7ae03af970141dcad81b4265895a52749..ba612a151d27962a8e0a44a1c97efe5ebb44cc51 100644 (file)
@@ -43,7 +43,6 @@
 #include "qapi/error.h"
 #include "qapi/qapi-events-misc.h"
 #include "qapi/visitor.h"
-#include "hw/rtc/mc146818rtc_regs.h"
 
 //#define DEBUG_CMOS
 //#define DEBUG_COALESCED
index bf8057880ff67f423161151ee071d3b46dcdd870..8f8d2302f811e4bfa124c8a7bf8603c5c9a72c3c 100644 (file)
@@ -15,7 +15,6 @@
 #include "hw/qdev-properties.h"
 #include "hw/virtio/virtio-serial.h"
 #include "virtio-ccw.h"
-#include "hw/virtio/virtio-serial.h"
 
 #define TYPE_VIRTIO_SERIAL_CCW "virtio-serial-ccw"
 OBJECT_DECLARE_SIMPLE_TYPE(VirtioSerialCcw, VIRTIO_SERIAL_CCW)
index 7310c769be2e6a980b802f1f8d00ab9af4c8027b..8f4a1c2cd4bd915f543e9d205e50dc15992f8b38 100644 (file)
@@ -8,7 +8,6 @@
  */
 
 #include "qemu/osdep.h"
-#include <string.h>
 #include "hw/i2c/pmbus_device.h"
 #include "hw/irq.h"
 #include "migration/vmstate.h"
index b24b3148c284f028ef8600a441e8ad5a29be231d..1e5c5c711f5dd426a9f63023697b79bb714d8bbc 100644 (file)
@@ -8,7 +8,6 @@
  */
 
 #include "qemu/osdep.h"
-#include "qemu/typedefs.h"
 #include "qapi/error.h"
 #include "hw/usb.h"
 #include "hw/usb/desc.h"
index 00f25bade28aaad293aa3add3bff44f32d1d9a70..84d19752b559845771dbb03507c0da13ba6198fb 100644 (file)
@@ -8,7 +8,6 @@
  */
 
 #include "qemu/osdep.h"
-#include "qemu/typedefs.h"
 #include "qapi/error.h"
 #include "qapi/visitor.h"
 #include "hw/usb.h"
index 3ab924d5e225c4036453264ab2a919c96473b282..18cc14de22fa34b99f8bff63b37b2749f881a07d 100644 (file)
@@ -20,7 +20,6 @@
 #ifndef GRAPH_LOCK_H
 #define GRAPH_LOCK_H
 
-#include "qemu/osdep.h"
 #include "qemu/clang-tsa.h"
 
 /**
index f50f923e7e1460d108b726974b41aaecece2fbaf..63d1583887aa5ce2f14f4f2d2f514b0f87aae555 100644 (file)
@@ -13,8 +13,6 @@
 #ifndef BLOCK_WRITE_THRESHOLD_H
 #define BLOCK_WRITE_THRESHOLD_H
 
-#include "qemu/typedefs.h"
-
 /*
  * bdrv_write_threshold_set:
  *
index 7812e516a5277425f41343a1f4e83d7bfec3ae8e..1952cb984d670c6909fd6f5fdfe2cb3b2e709d64 100644 (file)
@@ -30,7 +30,6 @@
 #include "hw/timer/imx_gpt.h"
 #include "hw/timer/imx_epit.h"
 #include "hw/i2c/imx_i2c.h"
-#include "hw/gpio/imx_gpio.h"
 #include "hw/sd/sdhci.h"
 #include "hw/ssi/imx_spi.h"
 #include "hw/net/imx_fec.h"
index 4e5e07186486e7bf3b7e8dbe68cb8a9b07ee39b6..355bd8ea838d6a593221526923af691b8836790d 100644 (file)
@@ -32,7 +32,6 @@
 #include "hw/timer/imx_gpt.h"
 #include "hw/timer/imx_epit.h"
 #include "hw/i2c/imx_i2c.h"
-#include "hw/gpio/imx_gpio.h"
 #include "hw/sd/sdhci.h"
 #include "hw/ssi/imx_spi.h"
 #include "hw/net/imx_fec.h"
index 5dca21e95bea270d313869cc3bc28433b1a180ae..692d7a550704c5530a16d4cacb760750bc37e231 100644 (file)
@@ -15,9 +15,7 @@
 #define CXL2_COMPONENT_CM_REGION_SIZE 0x1000
 #define CXL2_COMPONENT_BLOCK_SIZE 0x10000
 
-#include "qemu/compiler.h"
 #include "qemu/range.h"
-#include "qemu/typedefs.h"
 #include "hw/cxl/cxl_cdat.h"
 #include "hw/register.h"
 #include "qapi/error.h"
index a1b662ce4063060eea3e2a4a345f2a65db72e66b..c9bc9c7c500aff031d5db4a31d4599d4f3a19233 100644 (file)
@@ -7,7 +7,6 @@
  * COPYING file in the top-level directory.
  */
 
-#include "qemu/osdep.h"
 #include "hw/cxl/cxl.h"
 #include "hw/boards.h"
 
index 01e15ed5b46eb3ee5ddc12f01d9296e0191a1323..407be95b9e558847aac327f9f8f8c10b413dc05c 100644 (file)
@@ -10,7 +10,6 @@
 #ifndef CXL_PCI_H
 #define CXL_PCI_H
 
-#include "qemu/compiler.h"
 
 #define CXL_VENDOR_ID 0x1e98
 
index 89ec4fafc9a0896f7b799da5c2034b0e5d3c4a53..4cb8985f31a0d5732a6de341b1432e4cf1d69125 100644 (file)
@@ -10,7 +10,6 @@
 #ifndef HW_PL050_H
 #define HW_PL050_H
 
-#include "qemu/osdep.h"
 #include "hw/sysbus.h"
 #include "migration/vmstate.h"
 #include "hw/input/ps2.h"
index fd228731d2ff020bdd3180aa52829aefebed51e0..fa398959af214c012b8862af9270ffd908ead878 100644 (file)
@@ -12,8 +12,6 @@
 
 #include "hw/sysbus.h"
 
-#include <stdint.h>
-
 #define TYPE_ASPEED_LPC "aspeed.lpc"
 #define ASPEED_LPC(obj) OBJECT_CHECK(AspeedLPCState, (obj), TYPE_ASPEED_LPC)
 
index ba4d8b03bd3b1a68376399006810de85922ed18d..87dc17dcef9c631de018137f8f490f974031215d 100644 (file)
@@ -11,7 +11,6 @@
 #define PCIE_DOE_H
 
 #include "qemu/range.h"
-#include "qemu/typedefs.h"
 #include "hw/register.h"
 
 /*
index 094c8bd563cce6a5ba3d49bd367c5aa183c419a8..4fdd2d7d97b5ccf6ac5440c65c4cf58aa482681c 100644 (file)
@@ -18,7 +18,6 @@
  * License along with this library; if not, see <http://www.gnu.org/licenses/>.
  */
 
-#include "qemu/osdep.h"
 #include "qapi/error.h"
 #include "hw/boards.h"
 #include "sysemu/sysemu.h"
index 092e7a37e7afcc69dc0e61c07b9fe75e4087439b..b281da005b519a69bc5299320d81f06a654f8b09 100644 (file)
@@ -13,8 +13,6 @@
 #ifndef QEMU_ASYNC_TEARDOWN_H
 #define QEMU_ASYNC_TEARDOWN_H
 
-#include "config-host.h"
-
 #ifdef CONFIG_LINUX
 void init_async_teardown(void);
 #endif
index 08f00dfd534208c19422cd24694007a0dc7b22cf..81d3de8a5a1e8dafaab6af6f9c334e6a8476129f 100644 (file)
@@ -15,7 +15,6 @@
 #include "qom/object.h"
 #include "chardev/char.h"
 #include "qemu/notify.h"
-#include "qemu/typedefs.h"
 
 /* glib/gio 2.68 */
 #define DBUS_METHOD_INVOCATION_HANDLED TRUE
index 88d476161ccb4588984eaf60f231e2487f279e4e..3ce62bf4a569228aff0cde42c893b96a0cc54440 100644 (file)
@@ -30,7 +30,6 @@
 #ifndef HOST_UTILS_H
 #define HOST_UTILS_H
 
-#include "qemu/compiler.h"
 #include "qemu/bswap.h"
 #include "qemu/int128.h"
 
index d764496f0b3814068e1d8dd535f0fbf312c0aa8d..18a4314212d7bf604920f554cafb2ad879ee5db7 100644 (file)
@@ -15,7 +15,6 @@
 
 #ifdef CONFIG_LINUX
 
-#include "qemu/osdep.h"
 #include "exec/hwaddr.h"
 #include <linux/userfaultfd.h>
 
index 72020529ef3541329d46b260ef279bc9e5725c58..0733783bcc503e1f1f573bb50e5aec166023a1fd 100644 (file)
@@ -14,7 +14,6 @@
 #ifndef ACCEL_BLOCKER_H
 #define ACCEL_BLOCKER_H
 
-#include "qemu/osdep.h"
 #include "sysemu/cpus.h"
 
 extern void accel_blocker_init(void);
index 2748bf6ae1f827db44793c3e62e826a5b67b85ae..a6c24f13513d888cd526c8d5d0848ae85a456d4b 100644 (file)
@@ -14,7 +14,6 @@
 
 #include "qom/object.h"
 #include "block/aio.h"
-#include "qemu/typedefs.h"
 
 #define TYPE_EVENT_LOOP_BASE         "event-loop-base"
 OBJECT_DECLARE_TYPE(EventLoopBase, EventLoopBaseClass,
index b98e95dab0e91296b167cdb6256bfb1d56bc42df..53299b7a5ebd7d8fae68eb069f07d14f73577bd5 100644 (file)
@@ -17,7 +17,6 @@
  */
 
 #include "qemu/osdep.h"
-#include "qemu/rcu.h"
 #include "qemu/madvise.h"
 #include "exec/target_page.h"
 #include "migration.h"
@@ -34,7 +33,6 @@
 #include "hw/boards.h"
 #include "exec/ramblock.h"
 #include "socket.h"
-#include "qemu-file.h"
 #include "yank_functions.h"
 #include "tls.h"
 #include "qemu/userfaultfd.h"
index adf6e8c20d5d7780be0e5b7bcba34ecde08731fc..d0b90594f293c4ece81e8ce9bfb3ba26d5374cae 100644 (file)
@@ -10,7 +10,6 @@
 #ifndef VMNET_INT_H
 #define VMNET_INT_H
 
-#include "qemu/osdep.h"
 #include "vmnet_int.h"
 #include "clients.h"
 
index ebd33a643cf9c35998817cdf59dd20338d90bff8..079689d79a3af5c856d7d04212e78623ebf8b1ff 100644 (file)
@@ -51,7 +51,6 @@
 #else
 #include <net/ethernet.h>
 #endif
-#include <sys/types.h>
 #ifdef CONFIG_SOLARIS
 #include <sys/sockio.h>
 #endif
index b8e142ef649d4bc4461981c501b06f150db98f23..b21bcf3683089c2ec4170edb5eb3fccb59276ec1 100644 (file)
@@ -2,8 +2,9 @@
  * This work is licensed under the terms of the GNU GPL, version 2 or later.
  * See the COPYING file in the top-level directory.
  */
-#include "cutils.h"
 
+#include "qemu/osdep.h"
+#include "cutils.h"
 #include "qapi/error.h"
 
 /**
index f0f30a7d28aa8edbdb7bf82aba57871422189ef1..c1f2f4b17a0f0ab8ed1b1da732daeb23f5190786 100644 (file)
@@ -1,8 +1,6 @@
 #ifndef CUTILS_H_
 #define CUTILS_H_
 
-#include "qemu/osdep.h"
-
 int qga_open_cloexec(const char *name, int flags, mode_t mode);
 
 #endif /* CUTILS_H_ */
index 42b0471634c2ee14e0a5ecdc3b6cc05244da409d..0d094d70c3b362a2ceeed1d2b86f575e51bd53af 100644 (file)
       check_mode: yes
       register: centos_stream_8
 
+    - name: Enable EPEL repo on CentOS Stream 8
+      dnf:
+        name:
+          - epel-release
+        state: present
+      when:
+        - centos_stream_8
+
     - name: Enable PowerTools repo on CentOS Stream 8
       ini_file:
         path: /etc/yum.repos.d/CentOS-Stream-PowerTools.repo
         option: enabled
         value: "1"
       when:
-        - ansible_facts['distribution'] == 'CentOS'
-        - ansible_facts['distribution_major_version'] == '8'
         - centos_stream_8
 
     - name: Install basic packages to build QEMU on CentOS Stream 8
       dnf:
         name:
+          - bzip2
+          - bzip2-devel
+          - capstone-devel
+          - dbus-daemon
           - device-mapper-multipath-devel
+          - diffutils
+          - gcc
+          - gcc-c++
+          - genisoimage
+          - gettext
+          - git
+          - glib2-devel
           - glusterfs-api-devel
           - gnutls-devel
+          - libaio-devel
           - libcap-ng-devel
           - libcurl-devel
+          - libepoxy-devel
           - libfdt-devel
+          - libgcrypt-devel
           - libiscsi-devel
           - libpmem-devel
           - librados-devel
           - libseccomp-devel
           - libssh-devel
           - libxkbcommon-devel
+          - lzo-devel
+          - make
+          - mesa-libEGL-devel
+          - nettle-devel
           - ninja-build
+          - nmap-ncat
           - numactl-devel
+          - pixman-devel
+          - python38
           - python3-sphinx
+          - rdma-core-devel
           - redhat-rpm-config
           - snappy-devel
+          - spice-glib-devel
           - spice-server-devel
           - systemd-devel
+          - systemtap-sdt-devel
+          - tar
+          - zlib-devel
         state: present
       when:
-        - ansible_facts['distribution'] == 'CentOS'
-        - ansible_facts['distribution_major_version'] == '8'
         - centos_stream_8
index 75882faa9ca5384ce5a3bcd8ea2ecc15dc9281ee..65eacf3c56bbb274b63099baddfe8942577077c3 100755 (executable)
@@ -16,6 +16,7 @@
 # that patches adding downstream specific devices are not available.
 #
 ../configure \
+--python=/usr/bin/python3.8 \
 --prefix="/usr" \
 --libdir="/usr/lib64" \
 --datadir="/usr/share" \
index 58438008eeb67d52361120793a194463b5ff6580..78b1021cd420d8609445f7251ec05f7b9e258c06 100644 (file)
@@ -46,6 +46,7 @@
           - libbrlapi-dev
           - libbz2-dev
           - libcacard-dev
+          - libcapstone-dev
           - libcap-ng-dev
           - libcurl4-gnutls-dev
           - libdrm-dev
         - ansible_facts['distribution_version'] == '20.04'
         - ansible_facts['architecture'] == 'aarch64'
 
+    - name: Enable EPEL repo on EL8
+      dnf:
+        name:
+          - epel-release
+        state: present
+      when:
+        - ansible_facts['distribution_file_variety'] in ['RedHat', 'CentOS']
+        - ansible_facts['distribution_major_version'] == '8'
+
+    - name: Enable PowerTools repo on CentOS 8
+      ini_file:
+        path: /etc/yum.repos.d/CentOS-Stream-PowerTools.repo
+        section: powertools
+        option: enabled
+        value: "1"
+      when:
+        - ansible_facts['distribution_file_variety'] == 'CentOS'
+        - ansible_facts['distribution_major_version'] == '8'
+
     - name: Install basic packages to build QEMU on EL8
       dnf:
         # This list of packages start with tests/docker/dockerfiles/centos8.docker
         name:
           - bzip2
           - bzip2-devel
+          - capstone-devel
           - dbus-daemon
+          - device-mapper-multipath-devel
           - diffutils
           - gcc
           - gcc-c++
           - gettext
           - git
           - glib2-devel
+          - glusterfs-api-devel
+          - gnutls-devel
           - libaio-devel
+          - libcap-ng-devel
+          - libcurl-devel
           - libepoxy-devel
+          - libfdt-devel
           - libgcrypt-devel
+          - libiscsi-devel
+          - libpmem-devel
+          - librados-devel
+          - librbd-devel
+          - libseccomp-devel
+          - libssh-devel
+          - libxkbcommon-devel
           - lzo-devel
           - make
           - mesa-libEGL-devel
           - nettle-devel
           - ninja-build
           - nmap-ncat
+          - numactl-devel
           - pixman-devel
-          - python36
+          - python38
+          - python3-sphinx
           - rdma-core-devel
+          - redhat-rpm-config
+          - snappy-devel
           - spice-glib-devel
+          - systemd-devel
           - systemtap-sdt-devel
           - tar
           - zlib-devel
         state: present
       when:
-        - ansible_facts['distribution_file_variety'] == 'RedHat'
+        - ansible_facts['distribution_file_variety'] in ['RedHat', 'CentOS']
         - ansible_facts['distribution_version'] == '8'
 
     - name: Install packages only available on x86 and aarch64
         # Spice server not available in ppc64le
         name:
           - spice-server
+          - spice-server-devel
         state: present
       when:
-        - ansible_facts['distribution_file_variety'] == 'RedHat'
+        - ansible_facts['distribution_file_variety'] in ['RedHat', 'CentOS']
         - ansible_facts['distribution_version'] == '8'
         - ansible_facts['architecture'] == 'aarch64' or ansible_facts['architecture'] == 'x86_64'
+
+    - name: Check whether the Python runtime version is managed by alternatives
+      stat:
+        path: /etc/alternatives/python3
+      register: python3
+
+    - name: Set default Python runtime to 3.8 on EL8
+      command: alternatives --set python3 /usr/bin/python3.8
+      when:
+        - ansible_facts['distribution_file_variety'] in ['RedHat', 'CentOS']
+        - ansible_facts['distribution_version'] == '8'
+        - python3.stat.islnk and python3.stat.lnk_target != '/usr/bin/python3.8'
index d37bd4f69284ee0a2d0a2896ce8a69811eb39219..58e1607a82eac570452ec5b91d45139c62ac543c 100755 (executable)
@@ -111,7 +111,12 @@ cat >"$COCCIFILE" <<EOT
 )
 EOT
 
+files=
 for f in "$@"; do
+  if [ -L "$f" ]; then
+      echo "SKIPPING $f (symbolic link)"
+      continue
+  fi
   case "$f" in
     *.c.inc)
       # These aren't standalone C source files
@@ -144,6 +149,7 @@ for f in "$@"; do
       continue
       ;;
   esac
+  files="$files $f"
 
   if [ "$MODE" = "c" ]; then
     # First, use Coccinelle to add qemu/osdep.h before the first existing include
@@ -174,25 +180,30 @@ for f in "$@"; do
 
 done
 
-if [ "$DUPHEAD" = "yes" ]; then
-    egrep "^[[:space:]]*#[[:space:]]*include" "$@" | tr -d '[:blank:]' \
-        | sort | uniq -c | awk '{if ($1 > 1) print $0}'
-    if [ $? -eq 0 ]; then
+if [ "$DUPHEAD" = "yes" ] && [ -n "$files" ]; then
+    if egrep "^[[:space:]]*#[[:space:]]*include" $files | tr -d '[:blank:]' \
+        | sort | uniq -c | grep -v '^ *1 '; then
         echo "Found duplicate header file includes. Please check the above files manually."
         exit 1
     fi
 fi
 
 if [ "$GIT" = "yes" ]; then
-    git add -- "$@"
+    git add -- $files
     git commit --signoff -F - <<EOF
 $GITSUBJ: Clean up includes
 
-Clean up includes so that osdep.h is included first and headers
-which it implies are not included manually.
-
 This commit was created with scripts/clean-includes.
 
+All .c should include qemu/osdep.h first.  The script performs three
+related cleanups:
+
+* Ensure .c files include qemu/osdep.h first.
+* Including it in a .h is redundant, since the .c  already includes
+  it.  Drop such inclusions.
+* Likewise, including headers qemu/osdep.h includes is redundant.
+  Drop these, too.
+
 EOF
 
 fi
index 12668555f2c14c6e680b38ed18d619af751be5ce..c56f0f58c8c9eb2030ea4325aaf31bab63bbb073 100644 (file)
@@ -11,7 +11,6 @@
  */
 
 #include "qemu/osdep.h"
-#include "qapi/error.h"
 #include "qemu/main-loop.h"
 #include "qapi/qapi-commands-migration.h"
 #include "qapi/qmp/qdict.h"
index cab9f6fc075b45b4f05d7747dad8a6dae89c983f..f9ad88e6a733b9273308d9590da9c9cc76d32a7f 100644 (file)
@@ -41,7 +41,6 @@
 #include "qapi/qapi-commands-run-state.h"
 #include "qapi/qapi-events-run-state.h"
 #include "qemu/error-report.h"
-#include "qemu/log.h"
 #include "qemu/job.h"
 #include "qemu/log.h"
 #include "qemu/module.h"
index 9177d95d4ecac4b1bc49f871939df18848a60b99..b2ee3fee3f0631b0fa58f299689e16a457beb6b0 100644 (file)
 #include "qapi/qapi-commands-misc.h"
 #include "qapi/qapi-visit-qom.h"
 #include "qapi/qapi-commands-ui.h"
-#include "qapi/qmp/qdict.h"
 #include "block/qdict.h"
 #include "qapi/qmp/qerror.h"
 #include "sysemu/iothread.h"
 #include "qemu/guest-random.h"
 #include "qemu/keyval.h"
 
-#include "config-host.h"
-
 #define MAX_VIRTIO_CONSOLES 1
 
 typedef struct BlockdevOptionsQueueEntry {
index 885f68f76054e53829387bc5dd87913a4707caec..52a7f2b2f3aaf17840a8b3ddf46c81bb71425ee5 100644 (file)
@@ -18,7 +18,6 @@
 #ifndef HEXAGON_HEX_ARCH_TYPES_H
 #define HEXAGON_HEX_ARCH_TYPES_H
 
-#include "qemu/osdep.h"
 #include "mmvec/mmvec.h"
 #include "qemu/int128.h"
 
index 8c864e8c688692dcf516e9013c59f36a73c054fb..1201d778d0f0985e51096d984fcf2d03b83b1898 100644 (file)
@@ -18,7 +18,6 @@
 #ifndef HEXAGON_MMVEC_MACROS_H
 #define HEXAGON_MMVEC_MACROS_H
 
-#include "qemu/osdep.h"
 #include "qemu/host-utils.h"
 #include "arch.h"
 #include "mmvec/system_ext_mmvec.h"
index 38ced698031f33bffed2df2daed80ac25c460173..72a62756653bcca1fd58f63a716af928d15fa1e6 100644 (file)
@@ -12,7 +12,6 @@
 #include "exec/helper-proto.h"
 #include "exec/helper-gen.h"
 
-#include "exec/translator.h"
 #include "exec/log.h"
 #include "qemu/qemu-print.h"
 #include "fpu/softfloat.h"
index 624e6b77860306f39dc6ba43dfc434951f1aa880..aa12bb708adab479eb87426359de0324f28cebc8 100644 (file)
@@ -32,7 +32,6 @@
 #include "semihosting/semihost.h"
 
 #include "trace.h"
-#include "exec/translator.h"
 #include "exec/log.h"
 #include "qemu/qemu-print.h"
 #include "fpu_helper.h"
index 4db8b47744bc78c3496232da00f341be5061a2b2..7aee65a0895ed5c8a75d91ca856e222b0d02e14c 100644 (file)
@@ -938,8 +938,6 @@ static const char * const cr_regnames[NUM_CR_REGS] = {
 };
 #endif
 
-#include "exec/gen-icount.h"
-
 /* generate intermediate code for basic block 'tb'.  */
 static void nios2_tr_init_disas_context(DisasContextBase *dcbase, CPUState *cs)
 {
index 3004ce37b636b043a4d7a1feb8d1579ae3789bed..0c819ca98379f26b4374ea6b643d0a1e5ceb77cf 100644 (file)
@@ -16,7 +16,6 @@
  * this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#include "qemu/osdep.h"
 #include "qemu/log.h"
 #include "cpu.h"
 #include "qemu/main-loop.h"
index 022fe9d0f858d40239f600117e99a827fab5ebee..fc67e7e767a011cc5acb7cec8d96bb4b7aa74843 100644 (file)
--- a/tcg/tci.c
+++ b/tcg/tci.c
@@ -21,7 +21,6 @@
 #include "exec/cpu_ldst.h"
 #include "tcg/tcg-op.h"
 #include "tcg/tcg-ldst.h"
-#include "qemu/compiler.h"
 #include <ffi.h>
 
 
index 2126b463919b72d87f3d1bf807c9007c8a2ef237..3c4f875420256d8c17bea58b7de1dbf806cc802c 100644 (file)
@@ -26,7 +26,6 @@
  */
 
 #include "qemu/osdep.h"
-#include "qemu/units.h"
 #include "qemu/cutils.h"
 #include "qemu/units.h"
 
index 3d7771e46c742240dff51550ade6209add1cf48b..f02c79cafd1e096b28cde08bfd343eefbeb9fb72 100644 (file)
@@ -25,7 +25,6 @@
 #include "qapi/error.h"
 #include "qemu/module.h"
 
-#include <unistd.h>
 #include <sys/syscall.h>
 
 static void test_seccomp_helper(const char *args, bool killed,
index 4817623c8f3f92b287b75896a6d45206de56393d..7f752d8b7d6ad95b5475c60a8f226e5ad22cdf80 100644 (file)
--- a/ui/gtk.c
+++ b/ui/gtk.c
@@ -53,7 +53,6 @@
 #include <math.h>
 
 #include "trace.h"
-#include "qemu/cutils.h"
 #include "ui/input.h"
 #include "sysemu/runstate.h"
 #include "sysemu/sysemu.h"
index cebceb261001be02da9e4c330e98bb36b0e95650..cbf4357bb1c2eb5cc82974c6483fbd15a7862f00 100644 (file)
@@ -8,7 +8,6 @@
 #include "qapi/error.h"
 #include "ui/console.h"
 
-#include <fcntl.h>
 #include <sys/ioctl.h>
 
 int udmabuf_fd(void)
index 62bfce1b3ca84055e3a5369334a8e1cb1510557e..62cdeb0f20a2500e02e51895e7c90ab9a62170ac 100644 (file)
  * option) any later version.  See the COPYING file in the top-level directory.
  *
  */
-#include <stdlib.h>
-#include <stdio.h>
-#include <sys/types.h>
+
+#include "qemu/osdep.h"
 #include <dirent.h>
 #include <sys/prctl.h>
-#include <signal.h>
 #include <sched.h>
-#include <unistd.h>
 
-#include "qemu/osdep.h"
 #include "qemu/async-teardown.h"
 
 #ifdef _SC_THREAD_STACK_MIN
index 58f776a8c9c8e29188e53dac13ff53721b3544e3..3c0f52519264463c2525c39676f7e1c604ae47e9 100644 (file)
@@ -33,7 +33,6 @@
 #include "block/thread-pool.h"
 #include "qemu/error-report.h"
 #include "qemu/queue.h"
-#include "qemu/compiler.h"
 #include "qom/object.h"
 
 #ifndef _WIN32
index 59a891b6a837bc4537d0d7d9e780e81a37b1ca34..77d882e6818c03d4448ba62b9ec5c80c5f82ab2f 100644 (file)
@@ -40,7 +40,6 @@
 #include "qemu/thread.h"
 #include <libgen.h>
 #include "qemu/cutils.h"
-#include "qemu/compiler.h"
 #include "qemu/units.h"
 #include "qemu/thread-context.h"
 
@@ -50,7 +49,6 @@
 
 #ifdef __FreeBSD__
 #include <sys/thr.h>
-#include <sys/types.h>
 #include <sys/user.h>
 #include <libutil.h>
 #endif
 
 #include "qemu/mmap-alloc.h"
 
-#ifdef CONFIG_DEBUG_STACK_USAGE
-#include "qemu/error-report.h"
-#endif
-
 #define MAX_MEM_PREALLOC_THREAD_COUNT 16
 
 struct MemsetThread;