@samitouri / QOSamiQemu / commits / 71cab1a42d

target/cpu: Do not include 'exec/cpu-defs.h' anymore

Nothing in all our target "cpu.h" directly uses definitions from "exec/cpu-defs.h": no need to include it there. This remove a lot of target-specificities, simplifying inclusion of target "cpu.h" by common code. Inspired-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Message-Id: <20260313062055.2188-20-philmd@linaro.org>

Philippe Mathieu-Daudé committed Mar 13, 2026 at 05:12 UTC 71cab1a42d2f2b7bd5837192596ac6f420076d57
18 files changed -18
target/alpha/cpu.h
-1
@@ -22,7 +22,6 @@
22
23 #include "cpu-qom.h"
24 #include "exec/cpu-common.h"
25 -#include "exec/cpu-defs.h"
25 #include "exec/cpu-interrupt.h"
26 #include "qemu/cpu-float.h"
27
target/arm/cpu.h
-1
@@ -25,7 +25,6 @@
25 #include "hw/core/registerfields.h"
26 #include "cpu-qom.h"
27 #include "exec/cpu-common.h"
28 -#include "exec/cpu-defs.h"
28 #include "exec/cpu-interrupt.h"
29 #include "exec/gdbstub.h"
30 #include "exec/page-protection.h"
target/avr/cpu.h
-1
@@ -23,7 +23,6 @@
23
24 #include "cpu-qom.h"
25 #include "exec/cpu-common.h"
26 -#include "exec/cpu-defs.h"
26 #include "exec/cpu-interrupt.h"
27 #include "system/memory.h"
28
target/hexagon/cpu.h
-1
@@ -22,7 +22,6 @@
22
23 #include "cpu-qom.h"
24 #include "exec/cpu-common.h"
25 -#include "exec/cpu-defs.h"
25 #include "exec/target_long.h"
26 #include "hex_regs.h"
27 #include "mmvec/mmvec.h"
target/hppa/cpu.h
-1
@@ -22,7 +22,6 @@
22
23 #include "cpu-qom.h"
24 #include "exec/cpu-common.h"
25 -#include "exec/cpu-defs.h"
25 #include "exec/cpu-interrupt.h"
26 #include "exec/target_long.h"
27 #include "system/memory.h"
target/i386/cpu.h
-1
@@ -24,7 +24,6 @@
24 #include "cpu-qom.h"
25 #include "kvm/hyperv-proto.h"
26 #include "exec/cpu-common.h"
27 -#include "exec/cpu-defs.h"
27 #include "exec/cpu-interrupt.h"
28 #include "exec/target_long.h"
29 #include "exec/memop.h"
target/loongarch/cpu.h
-1
@@ -10,7 +10,6 @@
10
11 #include "qemu/int128.h"
12 #include "exec/cpu-common.h"
13 -#include "exec/cpu-defs.h"
13 #include "exec/cpu-interrupt.h"
14 #include "fpu/softfloat-types.h"
15 #include "hw/core/registerfields.h"
target/m68k/cpu.h
-1
@@ -22,7 +22,6 @@
22 #define M68K_CPU_H
23
24 #include "exec/cpu-common.h"
25 -#include "exec/cpu-defs.h"
25 #include "exec/cpu-interrupt.h"
26 #include "qemu/cpu-float.h"
27 #include "cpu-qom.h"
target/microblaze/cpu.h
-1
@@ -22,7 +22,6 @@
22
23 #include "cpu-qom.h"
24 #include "exec/cpu-common.h"
25 -#include "exec/cpu-defs.h"
25 #include "qemu/cpu-float.h"
26 #include "exec/cpu-interrupt.h"
27
target/mips/cpu.h
-1
@@ -3,7 +3,6 @@
3
4 #include "cpu-qom.h"
5 #include "exec/cpu-common.h"
6 -#include "exec/cpu-defs.h"
6 #include "exec/cpu-interrupt.h"
7 #include "exec/target_long.h"
8 #ifndef CONFIG_USER_ONLY
target/or1k/cpu.h
-1
@@ -22,7 +22,6 @@
22
23 #include "cpu-qom.h"
24 #include "exec/cpu-common.h"
25 -#include "exec/cpu-defs.h"
25 #include "exec/cpu-interrupt.h"
26 #include "fpu/softfloat-types.h"
27
target/ppc/cpu.h
-1
@@ -23,7 +23,6 @@
23 #include "qemu/int128.h"
24 #include "qemu/cpu-float.h"
25 #include "exec/cpu-common.h"
26 -#include "exec/cpu-defs.h"
26 #include "exec/cpu-interrupt.h"
27 #include "exec/target_long.h"
28 #include "cpu-qom.h"
target/riscv/cpu.h
-1
@@ -24,7 +24,6 @@
24 #include "hw/core/registerfields.h"
25 #include "hw/core/qdev-properties.h"
26 #include "exec/cpu-common.h"
27 -#include "exec/cpu-defs.h"
27 #include "exec/cpu-interrupt.h"
28 #include "exec/gdbstub.h"
29 #include "exec/target_long.h"
target/rx/cpu.h
-1
@@ -24,7 +24,6 @@
24 #include "cpu-qom.h"
25
26 #include "exec/cpu-common.h"
27 -#include "exec/cpu-defs.h"
27 #include "exec/cpu-interrupt.h"
28 #include "qemu/cpu-float.h"
29
target/s390x/cpu.h
-1
@@ -28,7 +28,6 @@
28 #include "cpu-qom.h"
29 #include "cpu_models.h"
30 #include "exec/cpu-common.h"
31 -#include "exec/cpu-defs.h"
31 #include "exec/cpu-interrupt.h"
32 #include "qemu/cpu-float.h"
33 #include "qapi/qapi-types-machine-common.h"
target/sh4/cpu.h
-1
@@ -22,7 +22,6 @@
22
23 #include "cpu-qom.h"
24 #include "exec/cpu-common.h"
25 -#include "exec/cpu-defs.h"
25 #include "exec/cpu-interrupt.h"
26 #include "qemu/cpu-float.h"
27
target/sparc/cpu.h
-1
@@ -3,7 +3,6 @@
3
4 #include "qemu/bswap.h"
5 #include "cpu-qom.h"
6 -#include "exec/cpu-defs.h"
6 #include "exec/cpu-interrupt.h"
7 #include "exec/target_long.h"
8 #include "qemu/cpu-float.h"
target/tricore/cpu.h
-1
@@ -23,7 +23,6 @@
23 #include "cpu-qom.h"
24 #include "hw/core/registerfields.h"
25 #include "exec/cpu-common.h"
26 -#include "exec/cpu-defs.h"
26 #include "qemu/cpu-float.h"
27 #include "tricore-defs.h"
28