]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
exec/cpu-all: remove system/memory include
authorPierrick Bouvier <pierrick.bouvier@linaro.org>
Tue, 25 Mar 2025 04:58:49 +0000 (21:58 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Wed, 23 Apr 2025 22:04:57 +0000 (15:04 -0700)
We include this header where needed. When includes set already have
ifdef CONFIG_USER_ONLY, we add it here, else, we don't condition the
include.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-ID: <20250325045915.994760-5-pierrick.bouvier@linaro.org>

23 files changed:
hw/ppc/spapr_ovec.c
hw/s390x/ipl.h
include/exec/cpu-all.h
target/alpha/helper.c
target/arm/hvf/hvf.c
target/arm/internals.h
target/hppa/cpu.h
target/i386/arch_memory_mapping.c
target/i386/helper.c
target/i386/hvf/vmx.h
target/i386/tcg/system/misc_helper.c
target/i386/tcg/system/tcg-cpu.c
target/m68k/helper.c
target/ppc/excp_helper.c
target/ppc/mmu-book3s-v3.c
target/ppc/mmu-hash32.h
target/ppc/mmu-hash64.c
target/ppc/mmu-radix64.c
target/riscv/cpu_helper.c
target/sparc/ldst_helper.c
target/sparc/mmu_helper.c
target/xtensa/mmu_helper.c
target/xtensa/op_helper.c

index 6d6eaf67cbafa6cd1fa52404d88ab735b7773f40..75ab4fe2623c3a3844f0c74051a2511d19a6d80f 100644 (file)
@@ -16,6 +16,7 @@
 #include "migration/vmstate.h"
 #include "qemu/bitmap.h"
 #include "system/address-spaces.h"
+#include "system/memory.h"
 #include "qemu/error-report.h"
 #include "trace.h"
 #include <libfdt.h>
index c6ecb3433cc297ae5083196a6cbdb6e1ec39e1fb..6557ac3be5bc13de89eb8bae70c99d5d6b015098 100644 (file)
@@ -15,6 +15,7 @@
 
 #include "cpu.h"
 #include "system/address-spaces.h"
+#include "system/memory.h"
 #include "hw/qdev-core.h"
 #include "hw/s390x/ipl/qipl.h"
 #include "qom/object.h"
index be462c44101fbac9e1218debcbcbb2d9c1947a58..399fcbb9d1bcce5f24a52cb8969fa9520cafb6eb 100644 (file)
 #include "hw/core/cpu.h"
 #include "exec/cpu-defs.h"
 #include "exec/target_page.h"
-#ifndef CONFIG_USER_ONLY
-#include "system/memory.h"
-#endif
-
-
 #include "cpu.h"
 
 #endif /* CPU_ALL_H */
index 57cefcba144833bec769ebbe9e9cc94789deac79..f6261a3a53c7d0f75ae7cba02401649f4404248b 100644 (file)
@@ -25,6 +25,7 @@
 #include "fpu/softfloat-types.h"
 #include "exec/helper-proto.h"
 #include "qemu/qemu-print.h"
+#include "system/memory.h"
 
 
 #define CONVERT_BIT(X, SRC, DST) \
index 93a3f9b53d432026b9b1483178a97a4308f3e6c5..34ca36fab556da55fade6b452c4d5cef2cc7f30e 100644 (file)
@@ -23,6 +23,7 @@
 #include <mach/mach_time.h>
 
 #include "system/address-spaces.h"
+#include "system/memory.h"
 #include "hw/boards.h"
 #include "hw/irq.h"
 #include "qemu/main-loop.h"
index 8756c24c08db4210135d54bae4fc927a143bae82..01408e40a34fde0e39bfbae938bde090d7add64d 100644 (file)
@@ -28,6 +28,7 @@
 #include "exec/breakpoint.h"
 #include "hw/registerfields.h"
 #include "tcg/tcg-gvec-desc.h"
+#include "system/memory.h"
 #include "syndrome.h"
 #include "cpu-features.h"
 
index 8b36642b5918fce547c09e008ee728b637d1a1f5..f6bf068776e378d976902e2dfc63b73c7f73eae6 100644 (file)
@@ -22,6 +22,7 @@
 
 #include "cpu-qom.h"
 #include "exec/cpu-defs.h"
+#include "system/memory.h"
 #include "qemu/cpu-float.h"
 #include "qemu/interval-tree.h"
 #include "hw/registerfields.h"
index ced199862ddbcf4318be4f2dd28d411ee14bf868..a2398c21732269636a1f66b7d6a4255e3a41c6b4 100644 (file)
@@ -14,6 +14,7 @@
 #include "qemu/osdep.h"
 #include "cpu.h"
 #include "system/memory_mapping.h"
+#include "system/memory.h"
 
 /* PAE Paging or IA-32e Paging */
 static void walk_pte(MemoryMappingList *list, AddressSpace *as,
index c07b1b16ea171ad96e3c121da45c2d9a3319bc6d..64d9e8ab9c4575fdcfba1e67c40e038324a49b73 100644 (file)
@@ -25,6 +25,7 @@
 #include "system/runstate.h"
 #ifndef CONFIG_USER_ONLY
 #include "system/hw_accel.h"
+#include "system/memory.h"
 #include "monitor/monitor.h"
 #include "kvm/kvm_i386.h"
 #endif
index 029516e5c0dcdec0864456625936ebdca6beae74..26d6029fa5559795234c5e16fe49243e4fa66209 100644 (file)
@@ -34,6 +34,7 @@
 #include "system/hvf_int.h"
 
 #include "system/address-spaces.h"
+#include "system/memory.h"
 
 static inline uint64_t rreg(hv_vcpuid_t vcpu, hv_x86_reg_t reg)
 {
index 0555cf2604181ab7856c519eea0502a82063f2de..67896c8c8756ecaabba35c419cacfdd9bb2477e0 100644 (file)
@@ -23,6 +23,7 @@
 #include "exec/helper-proto.h"
 #include "exec/cpu_ldst.h"
 #include "system/address-spaces.h"
+#include "system/memory.h"
 #include "exec/cputlb.h"
 #include "tcg/helper-tcg.h"
 #include "hw/i386/apic.h"
index ab1f3c7c59543d9b5c9680a0cdbe94b6816c7ebf..0538a4fd51a35b5a0a4df8917f36880f6c1af41b 100644 (file)
@@ -24,6 +24,7 @@
 #include "system/system.h"
 #include "qemu/units.h"
 #include "system/address-spaces.h"
+#include "system/memory.h"
 
 #include "tcg/tcg-cpu.h"
 
index 0bf574830f9e72ac6f1caeaf11e92936632f4c6d..8251272219146c5b81df6e77581134441e443d97 100644 (file)
@@ -25,6 +25,7 @@
 #include "exec/page-protection.h"
 #include "exec/gdbstub.h"
 #include "exec/helper-proto.h"
+#include "system/memory.h"
 #include "gdbstub/helpers.h"
 #include "fpu/softfloat.h"
 #include "qemu/qemu-print.h"
index c941c89806e2ed89d20ade45603e57c9bb0fbd8e..da8b525a41bbdf029e5339832695090b62566a5d 100644 (file)
@@ -19,6 +19,7 @@
 #include "qemu/osdep.h"
 #include "qemu/main-loop.h"
 #include "qemu/log.h"
+#include "system/memory.h"
 #include "system/tcg.h"
 #include "system/system.h"
 #include "system/runstate.h"
index a812cb511399a4f8ba38b587ec2e254e1ac240e5..38655563105c983e850374e3bf146ff109091996 100644 (file)
@@ -18,6 +18,7 @@
  */
 
 #include "qemu/osdep.h"
+#include "system/memory.h"
 #include "cpu.h"
 #include "mmu-hash64.h"
 #include "mmu-book3s-v3.h"
index 2838de031c73c6cd9e40613f4f7d8b6a2fea4e41..04c23ea75ed5a085117d641653e94364630d757f 100644 (file)
@@ -3,6 +3,8 @@
 
 #ifndef CONFIG_USER_ONLY
 
+#include "system/memory.h"
+
 bool ppc_hash32_xlate(PowerPCCPU *cpu, vaddr eaddr, MMUAccessType access_type,
                       hwaddr *raddrp, int *psizep, int *protp, int mmu_idx,
                       bool guest_visible);
index 5ca4faee2abdd93b16791d0e315f9fb37b655e23..3ba4810497e6b8f68e3898ef114256288d7e59f0 100644 (file)
@@ -25,6 +25,7 @@
 #include "qemu/error-report.h"
 #include "qemu/qemu-print.h"
 #include "system/hw_accel.h"
+#include "system/memory.h"
 #include "kvm_ppc.h"
 #include "mmu-hash64.h"
 #include "exec/log.h"
index 461eda4a3dce77c51abe3e76016c64aa512d9363..4ab5f3bb920950e698f6e34c23b409a508d32d8a 100644 (file)
@@ -23,6 +23,7 @@
 #include "exec/page-protection.h"
 #include "qemu/error-report.h"
 #include "system/kvm.h"
+#include "system/memory.h"
 #include "kvm_ppc.h"
 #include "exec/log.h"
 #include "internal.h"
index 0dd8645994d9df6db2191403e83134e5461ba40e..ca58094fb543d4285aa077ef7cfe6a88135afa20 100644 (file)
@@ -26,6 +26,7 @@
 #include "exec/cputlb.h"
 #include "exec/exec-all.h"
 #include "exec/page-protection.h"
+#include "system/memory.h"
 #include "instmap.h"
 #include "tcg/tcg-op.h"
 #include "accel/tcg/cpu-ops.h"
index 45882e25db12f6c0ccb6da20a8897f6dcb6ab712..8890d2b1197fd217cd68cde3f88b4a844ff00b8c 100644 (file)
@@ -27,6 +27,7 @@
 #include "exec/cputlb.h"
 #include "exec/page-protection.h"
 #include "exec/cpu_ldst.h"
+#include "system/memory.h"
 #ifdef CONFIG_USER_ONLY
 #include "user/page-protection.h"
 #endif
index 249b1f6c4cc68194598d2235c73a053b371ad6a4..c5d82a085455330492f0db7811a7a40743870e09 100644 (file)
@@ -24,6 +24,7 @@
 #include "accel/tcg/cpu-mmu-index.h"
 #include "exec/page-protection.h"
 #include "exec/tlb-flags.h"
+#include "system/memory.h"
 #include "qemu/qemu-print.h"
 #include "trace.h"
 
index 40b02f0a2cee2509c7c32b6559ec5c01f3494e09..1ce125794d6de9599338448a20ac805863f01d20 100644 (file)
@@ -36,6 +36,7 @@
 #include "accel/tcg/cpu-mmu-index.h"
 #include "exec/exec-all.h"
 #include "exec/page-protection.h"
+#include "system/memory.h"
 
 #define XTENSA_MPU_SEGMENT_MASK 0x0000001f
 #define XTENSA_MPU_ACC_RIGHTS_MASK 0x00000f00
index 028d4e0a1c713cdc12e2c55fbfaf917b59d2a6de..c125fa49464a69f426c3de1e722aabfb289f6b1e 100644 (file)
@@ -31,6 +31,7 @@
 #include "exec/page-protection.h"
 #include "qemu/host-utils.h"
 #include "exec/exec-all.h"
+#include "system/memory.h"
 #include "qemu/atomic.h"
 #include "qemu/timer.h"