[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v6 06/18] codebase: prepare to remove cpu.h from exec/exec-all.h
From: |
Pierrick Bouvier |
Subject: |
[PATCH v6 06/18] codebase: prepare to remove cpu.h from exec/exec-all.h |
Date: |
Mon, 17 Mar 2025 11:34:05 -0700 |
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
---
include/tcg/tcg-op.h | 1 +
target/ppc/helper_regs.h | 2 ++
hw/ppc/spapr_nested.c | 1 +
hw/sh4/sh7750.c | 1 +
page-vary-target.c | 2 +-
target/ppc/tcg-excp_helper.c | 1 +
target/riscv/bitmanip_helper.c | 2 +-
7 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/include/tcg/tcg-op.h b/include/tcg/tcg-op.h
index a02850583bd..bc46b5570c4 100644
--- a/include/tcg/tcg-op.h
+++ b/include/tcg/tcg-op.h
@@ -9,6 +9,7 @@
#define TCG_TCG_OP_H
#include "tcg/tcg-op-common.h"
+#include "exec/target_long.h"
#ifndef TARGET_LONG_BITS
#error must include QEMU headers
diff --git a/target/ppc/helper_regs.h b/target/ppc/helper_regs.h
index 8196c1346dc..b928c2c452d 100644
--- a/target/ppc/helper_regs.h
+++ b/target/ppc/helper_regs.h
@@ -20,6 +20,8 @@
#ifndef HELPER_REGS_H
#define HELPER_REGS_H
+#include "target/ppc/cpu.h"
+
void hreg_swap_gpr_tgpr(CPUPPCState *env);
void hreg_compute_hflags(CPUPPCState *env);
void hreg_update_pmu_hflags(CPUPPCState *env);
diff --git a/hw/ppc/spapr_nested.c b/hw/ppc/spapr_nested.c
index 201f6292033..a79e398c132 100644
--- a/hw/ppc/spapr_nested.c
+++ b/hw/ppc/spapr_nested.c
@@ -2,6 +2,7 @@
#include "qemu/cutils.h"
#include "exec/exec-all.h"
#include "exec/cputlb.h"
+#include "exec/target_long.h"
#include "helper_regs.h"
#include "hw/ppc/ppc.h"
#include "hw/ppc/spapr.h"
diff --git a/hw/sh4/sh7750.c b/hw/sh4/sh7750.c
index 6faf0e3ca8b..41306fb6008 100644
--- a/hw/sh4/sh7750.c
+++ b/hw/sh4/sh7750.c
@@ -29,6 +29,7 @@
#include "hw/irq.h"
#include "hw/sh4/sh.h"
#include "system/system.h"
+#include "target/sh4/cpu.h"
#include "hw/qdev-properties.h"
#include "hw/qdev-properties-system.h"
#include "sh7750_regs.h"
diff --git a/page-vary-target.c b/page-vary-target.c
index 3f81144cda8..84ddeb7c26a 100644
--- a/page-vary-target.c
+++ b/page-vary-target.c
@@ -21,7 +21,7 @@
#include "qemu/osdep.h"
#include "exec/page-vary.h"
-#include "exec/exec-all.h"
+#include "exec/target_page.h"
bool set_preferred_target_page_bits(int bits)
{
diff --git a/target/ppc/tcg-excp_helper.c b/target/ppc/tcg-excp_helper.c
index 5a189dc3d70..c422648cfdd 100644
--- a/target/ppc/tcg-excp_helper.c
+++ b/target/ppc/tcg-excp_helper.c
@@ -19,6 +19,7 @@
#include "qemu/osdep.h"
#include "qemu/main-loop.h"
#include "qemu/log.h"
+#include "target/ppc/cpu.h"
#include "exec/cpu_ldst.h"
#include "exec/exec-all.h"
#include "exec/helper-proto.h"
diff --git a/target/riscv/bitmanip_helper.c b/target/riscv/bitmanip_helper.c
index b99c4a39a1f..e9c8d7f7780 100644
--- a/target/riscv/bitmanip_helper.c
+++ b/target/riscv/bitmanip_helper.c
@@ -20,7 +20,7 @@
#include "qemu/osdep.h"
#include "qemu/host-utils.h"
-#include "exec/exec-all.h"
+#include "exec/target_long.h"
#include "exec/helper-proto.h"
#include "tcg/tcg.h"
--
2.39.5
- [PATCH v6 13/18] system/xen: remove inline stubs, (continued)
- [PATCH v6 13/18] system/xen: remove inline stubs, Pierrick Bouvier, 2025/03/17
- [PATCH v6 05/18] exec/memory.h: make devend_memop "target defines" agnostic, Pierrick Bouvier, 2025/03/17
- [PATCH v6 07/18] exec/exec-all: remove dependency on cpu.h, Pierrick Bouvier, 2025/03/17
- [PATCH v6 15/18] include/exec/memory: extract devend_big_endian from devend_memop, Pierrick Bouvier, 2025/03/17
- [PATCH v6 11/18] exec/ram_addr: call xen_hvm_modified_memory only if xen is enabled, Pierrick Bouvier, 2025/03/17
- [PATCH v6 03/18] exec/memory_ldst: extract memory_ldst declarations from cpu-all.h, Pierrick Bouvier, 2025/03/17
- [PATCH v6 09/18] exec/ram_addr: remove dependency on cpu.h, Pierrick Bouvier, 2025/03/17
- [PATCH v6 18/18] system/ioport: make compilation unit common, Pierrick Bouvier, 2025/03/17
- [PATCH v6 06/18] codebase: prepare to remove cpu.h from exec/exec-all.h,
Pierrick Bouvier <=
- [PATCH v6 16/18] include/exec/memory: move devend functions to memory-internal.h, Pierrick Bouvier, 2025/03/17
- [PATCH v6 08/18] exec/memory-internal: remove dependency on cpu.h, Pierrick Bouvier, 2025/03/17
- [PATCH v6 14/18] system/physmem: compilation unit is now common to all targets, Pierrick Bouvier, 2025/03/17
- [PATCH v6 17/18] system/memory: make compilation unit common, Pierrick Bouvier, 2025/03/17