target/translate: Remove unused "exec/cpu_ldst.h" / "qemu/main-loop.h"
v2 cover target/translate: Remove unused "exec/cpu_ldst.h" / "qemu/main-loop.h"
Yet another boring 'header cleanups' series :/
Since v1:
- Addressed Richard review comment
- Added Richard R-b tag
- 3 more patches around 'qemu/qatomic.h'
Philippe Mathieu-Daudé (11):
target/ppc/pmu: Include missing 'qemu/timer.h' header target/riscv/pmu: Restrict 'qemu/log.h' include to source target/translate: Include missing 'exec/cpu_ldst.h' header target/translate: Remove unnecessary 'exec/cpu_ldst.h' header target/translate: Restrict 'exec/cpu_ldst.h' to user emulation target/helpers: Remove unnecessary 'exec/cpu_ldst.h' header target/helper: Remove unnecessary 'qemu/main-loop.h' header target/mips: Remove unused headers in lcsr_helper.c target/xtensa: Include missing 'qemu/atomic.h' header qemu/processor: Remove unused 'qemu/atomic.h' header exec/translation-block: Clean up includes
include/exec/exec-all.h | 2 +- include/exec/translation-block.h | 6 +++--- include/qemu/processor.h | 2 -- target/riscv/pmu.h | 3 --- hw/xtensa/pic_cpu.c | 1 + target/alpha/translate.c | 1 - target/arm/ptw.c | 1 - target/avr/helper.c | 1 + target/cris/op_helper.c | 1 - target/hexagon/translate.c | 1 - target/hppa/translate.c | 1 - target/i386/tcg/fpu_helper.c | 1 + target/i386/tcg/sysemu/excp_helper.c | 1 + target/loongarch/cpu.c | 1 + target/loongarch/iocsr_helper.c | 1 - target/loongarch/op_helper.c | 1 - target/m68k/translate.c | 1 - target/microblaze/translate.c | 1 - target/mips/tcg/fpu_helper.c | 1 - target/mips/tcg/ldst_helper.c | 1 + target/mips/tcg/msa_helper.c | 1 + target/mips/tcg/sysemu/lcsr_helper.c | 5 ----- target/nios2/op_helper.c | 1 - target/nios2/translate.c | 1 - target/openrisc/translate.c | 1 - target/ppc/int_helper.c | 1 - target/ppc/machine.c | 1 - target/ppc/mem_helper.c | 1 - target/ppc/mmu_common.c | 1 - target/ppc/mmu_helper.c | 1 - target/ppc/power8-pmu.c | 2 +- target/ppc/translate.c | 2 -- target/riscv/csr.c | 1 - target/riscv/m128_helper.c | 1 - target/riscv/op_helper.c | 2 +- target/riscv/pmu.c | 1 + target/riscv/vector_helper.c | 1 + target/s390x/tcg/crypto_helper.c | 1 - target/s390x/tcg/excp_helper.c | 1 - target/s390x/tcg/fpu_helper.c | 1 - target/s390x/tcg/misc_helper.c | 1 - target/sh4/translate.c | 1 - target/sparc/translate.c | 1 - target/xtensa/dbg_helper.c | 1 - target/xtensa/exc_helper.c | 1 + target/xtensa/fpu_helper.c | 1 - target/xtensa/mmu_helper.c | 2 -- target/xtensa/op_helper.c | 3 +-- target/xtensa/win_helper.c | 1 - 49 files changed, 17 insertions(+), 51 deletions(-)
Signature · 1 line
2.41.0
PATCH v2 1/11 target/ppc/pmu: Include missing 'qemu/timer.h' header
Since commit c2eff582a3 ("target/ppc: PMU basic cycle count for pseries TCG") pmu_update_cycles() uses QEMU_CLOCK_VIRTUAL and calls qemu_clock_get_ns(), both defined in "qemu/timer.h".
--- target/ppc/power8-pmu.c | 1 + 1 file changed, 1 insertion(+)
target/ppc/power8-pmu.c +1 -0
@@ -16,6 +16,7 @@#include "exec/exec-all.h" #include "exec/helper-proto.h" #include "qemu/error-report.h" +#include "qemu/timer.h" #include "qemu/main-loop.h" #include "hw/ppc/ppc.h" #include "power8-pmu.h"
Signature · 1 line
2.41.0
Re: [PATCH v2 01/11] target/ppc/pmu: Include missing 'qemu/timer.h' header
Quoted 8 lines · Philippe Mathieu-Daudé
Since commit
c2eff582a3("target/ppc: PMU basic cycle count for pseries TCG")pmu_update_cycles()usesQEMU_CLOCK_VIRTUALand callsqemu_clock_get_ns(), both defined in "qemu/timer.h".Signed-off-by Philippe Mathieu-Daudé<[email protected]>--- target/ppc/power8-pmu.c | 1 + 1 file changed, 1 insertion(+)
r~
PATCH v2 2/11 target/riscv/pmu: Restrict 'qemu/log.h' include to source
In reply to Philippe Mathieu-DaudéDeclarations from "riscv/pmu.h" don't need anything from "qemu/log.h", reduce it's inclusion to the source.
--- target/riscv/pmu.h | 1 - target/riscv/pmu.c | 1 + 2 files changed, 1 insertion(+), 1 deletion(-)
target/riscv/pmu.h +0 -1
@@ -16,7 +16,6 @@* this program. If not, see <http://www.gnu.org/licenses/>. */ -#include "qemu/log.h" #include "cpu.h" #include "qemu/main-loop.h" #include "exec/exec-all.h"
target/riscv/pmu.c +1 -0
@@ -17,6 +17,7 @@*/ #include "qemu/osdep.h" +#include "qemu/log.h" #include "cpu.h" #include "pmu.h" #include "sysemu/cpu-timers.h"
Signature · 1 line
2.41.0
Re: [PATCH v2 02/11] target/riscv/pmu: Restrict 'qemu/log.h' include to source
Quoted 8 lines · Philippe Mathieu-Daudé
Declarations from "
riscv/pmu.h" don't need anything from "qemu/log.h", reduce it's inclusion to the source.Signed-off-by Philippe Mathieu-Daudé<[email protected]>--- target/riscv/pmu.h | 1 - target/riscv/pmu.c | 1 + 2 files changed, 1 insertion(+), 1 deletion(-)
r~
PATCH v2 3/11 target/translate: Include missing 'exec/cpu_ldst.h' header
In reply to Philippe Mathieu-DaudéAll these files access the CPU LD/ST API declared in "exec/cpu_ldst.h".
--- target/avr/helper.c | 1 + target/i386/tcg/fpu_helper.c | 1 + target/i386/tcg/sysemu/excp_helper.c | 1 + target/loongarch/cpu.c | 1 + target/mips/tcg/ldst_helper.c | 1 + target/mips/tcg/msa_helper.c | 1 + target/riscv/op_helper.c | 1 + target/riscv/vector_helper.c | 1 + 8 files changed, 8 insertions(+)
target/avr/helper.c +1 -0
@@ -24,6 +24,7 @@#include "cpu.h" #include "hw/core/tcg-cpu-ops.h" #include "exec/exec-all.h" +#include "exec/cpu_ldst.h" #include "exec/address-spaces.h" #include "exec/helper-proto.h"
target/i386/tcg/fpu_helper.c +1 -0
@@ -21,6 +21,7 @@#include <math.h> #include "cpu.h" #include "tcg-cpu.h" +#include "exec/cpu_ldst.h" #include "exec/helper-proto.h" #include "fpu/softfloat.h" #include "fpu/softfloat-macros.h"
target/i386/tcg/sysemu/excp_helper.c +1 -0
@@ -19,6 +19,7 @@#include "qemu/osdep.h" #include "cpu.h" +#include "exec/cpu_ldst.h" #include "exec/exec-all.h" #include "tcg/helper-tcg.h"
target/loongarch/cpu.c +1 -0
@@ -11,6 +11,7 @@#include "qapi/error.h" #include "qemu/module.h" #include "sysemu/qtest.h" +#include "exec/cpu_ldst.h" #include "exec/exec-all.h" #include "cpu.h" #include "internals.h"
target/mips/tcg/ldst_helper.c +1 -0
@@ -24,6 +24,7 @@#include "cpu.h" #include "exec/helper-proto.h" #include "exec/exec-all.h" +#include "exec/cpu_ldst.h" #include "exec/memop.h" #include "internal.h"
target/mips/tcg/msa_helper.c +1 -0
@@ -22,6 +22,7 @@#include "internal.h" #include "tcg/tcg.h" #include "exec/exec-all.h" +#include "exec/cpu_ldst.h" #include "exec/helper-proto.h" #include "exec/memop.h" #include "fpu/softfloat.h"
target/riscv/op_helper.c +1 -0
@@ -23,6 +23,7 @@#include "internals.h" #include "qemu/main-loop.h" #include "exec/exec-all.h" +#include "exec/cpu_ldst.h" #include "exec/helper-proto.h" /* Exceptions processing helpers */
target/riscv/vector_helper.c +1 -0
@@ -22,6 +22,7 @@#include "cpu.h" #include "exec/memop.h" #include "exec/exec-all.h" +#include "exec/cpu_ldst.h" #include "exec/helper-proto.h" #include "fpu/softfloat.h" #include "tcg/tcg-gvec-desc.h"
Signature · 1 line
2.41.0
PATCH v2 4/11 target/translate: Remove unnecessary 'exec/cpu_ldst.h' header
In reply to Philippe Mathieu-DaudéAll these files only access the translator_ld/st API declared in "exec/translator.h". The CPU ld/st API from declared in "exec/cpu_ldst.h" is not used, remove it.
--- target/alpha/translate.c | 1 - target/hexagon/translate.c | 1 - target/hppa/translate.c | 1 - target/m68k/translate.c | 1 - target/microblaze/translate.c | 1 - target/nios2/translate.c | 1 - target/openrisc/translate.c | 1 - target/ppc/translate.c | 1 - target/sh4/translate.c | 1 - target/sparc/translate.c | 1 - 10 files changed, 10 deletions(-)
target/alpha/translate.c +0 -1
@@ -24,7 +24,6 @@#include "qemu/host-utils.h" #include "exec/exec-all.h" #include "tcg/tcg-op.h" -#include "exec/cpu_ldst.h" #include "exec/helper-proto.h" #include "exec/helper-gen.h" #include "exec/translator.h"
target/hexagon/translate.c +0 -1
@@ -23,7 +23,6 @@#include "exec/helper-gen.h" #include "exec/helper-proto.h" #include "exec/translation-block.h" -#include "exec/cpu_ldst.h" #include "exec/log.h" #include "internal.h" #include "attribs.h"
target/hppa/translate.c +0 -1
@@ -23,7 +23,6 @@#include "qemu/host-utils.h" #include "exec/exec-all.h" #include "tcg/tcg-op.h" -#include "exec/cpu_ldst.h" #include "exec/helper-proto.h" #include "exec/helper-gen.h" #include "exec/translator.h"
target/m68k/translate.c +0 -1
@@ -25,7 +25,6 @@#include "tcg/tcg-op.h" #include "qemu/log.h" #include "qemu/qemu-print.h" -#include "exec/cpu_ldst.h" #include "exec/translator.h" #include "exec/helper-proto.h"
target/microblaze/translate.c +0 -1
@@ -24,7 +24,6 @@#include "exec/exec-all.h" #include "tcg/tcg-op.h" #include "exec/helper-proto.h" -#include "exec/cpu_ldst.h" #include "exec/helper-gen.h" #include "exec/translator.h" #include "qemu/qemu-print.h"
target/nios2/translate.c +0 -1
@@ -29,7 +29,6 @@#include "exec/helper-proto.h" #include "exec/helper-gen.h" #include "exec/log.h" -#include "exec/cpu_ldst.h" #include "exec/translator.h" #include "qemu/qemu-print.h" #include "semihosting/semihost.h"
target/openrisc/translate.c +0 -1
@@ -26,7 +26,6 @@#include "qemu/log.h" #include "qemu/bitops.h" #include "qemu/qemu-print.h" -#include "exec/cpu_ldst.h" #include "exec/translator.h" #include "exec/helper-proto.h"
target/ppc/translate.c +0 -1
@@ -27,7 +27,6 @@#include "tcg/tcg-op-gvec.h" #include "qemu/host-utils.h" #include "qemu/main-loop.h" -#include "exec/cpu_ldst.h" #include "exec/helper-proto.h" #include "exec/helper-gen.h"
target/sh4/translate.c +0 -1
@@ -22,7 +22,6 @@#include "disas/disas.h" #include "exec/exec-all.h" #include "tcg/tcg-op.h" -#include "exec/cpu_ldst.h" #include "exec/helper-proto.h" #include "exec/helper-gen.h" #include "exec/translator.h"
target/sparc/translate.c +0 -1
@@ -25,7 +25,6 @@#include "exec/helper-proto.h" #include "exec/exec-all.h" #include "tcg/tcg-op.h" -#include "exec/cpu_ldst.h" #include "exec/helper-gen.h"
Signature · 1 line
2.41.0
PATCH v2 5/11 target/translate: Restrict 'exec/cpu_ldst.h' to user emulation
In reply to Philippe Mathieu-DaudéOnly handle_sigsegv_accerr_write(), declared with user emulation, requires "exec/cpu_ldst.h" (for the abi_ptr typedef).
--- include/exec/exec-all.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/exec/exec-all.h +1 -1
@@ -21,7 +21,7 @@#define EXEC_ALL_H #include "cpu.h" -#ifdef CONFIG_TCG +#if defined(CONFIG_USER_ONLY )#include "exec/cpu_ldst.h" #endif #include "exec/translation-block.h"
Signature · 1 line
2.41.0
PATCH v2 6/11 target/helpers: Remove unnecessary 'exec/cpu_ldst.h' header
In reply to Philippe Mathieu-DaudéThese files don't use the CPU ld/st API, remove the unnecessary "exec/cpu_ldst.h" header.
--- target/riscv/pmu.h | 1 - target/cris/op_helper.c | 1 - target/mips/tcg/fpu_helper.c | 1 - target/mips/tcg/sysemu/lcsr_helper.c | 1 - target/s390x/tcg/excp_helper.c | 1 - target/s390x/tcg/fpu_helper.c | 1 - target/xtensa/mmu_helper.c | 1 - target/xtensa/op_helper.c | 1 - 8 files changed, 8 deletions(-)
target/riscv/pmu.h +0 -1
@@ -18,7 +18,6 @@#include "cpu.h" #include "qemu/main-loop.h" -#include "exec/exec-all.h" bool riscv_pmu_ctr_monitor_instructions (CPURISCVState *env,uint32_t target_ctr);
target/cris/op_helper.c +0 -1
@@ -24,7 +24,6 @@#include "exec/helper-proto.h" #include "qemu/host-utils.h" #include "exec/exec-all.h" -#include "exec/cpu_ldst.h" //#define CRIS_OP_HELPER_DEBUG
target/mips/tcg/fpu_helper.c +0 -1
@@ -25,7 +25,6 @@#include "internal.h" #include "exec/helper-proto.h" #include "exec/exec-all.h" -#include "exec/cpu_ldst.h" #include "fpu/softfloat.h" #include "fpu_helper.h"
target/mips/tcg/sysemu/lcsr_helper.c +0 -1
@@ -13,7 +13,6 @@#include "qemu/host-utils.h" #include "exec/helper-proto.h" #include "exec/exec-all.h" -#include "exec/cpu_ldst.h" #define GET_MEMTXATTRS (cas) \ ((MemTxAttrs){.requester_id = env_cpu(cas)->cpu_index})
target/s390x/tcg/excp_helper.c +0 -1
@@ -23,7 +23,6 @@#include "cpu.h" #include "exec/helper-proto.h" #include "exec/exec-all.h" -#include "exec/cpu_ldst.h" #include "s390x-internal.h" #include "tcg_s390x.h" #ifndef CONFIG_USER_ONLY
target/s390x/tcg/fpu_helper.c +0 -1
@@ -23,7 +23,6 @@#include "s390x-internal.h" #include "tcg_s390x.h" #include "exec/exec-all.h" -#include "exec/cpu_ldst.h" #include "exec/helper-proto.h" #include "fpu/softfloat.h"
target/xtensa/mmu_helper.c +0 -1
@@ -34,7 +34,6 @@#include "exec/helper-proto.h" #include "qemu/host-utils.h" #include "exec/exec-all.h" -#include "exec/cpu_ldst.h" #define XTENSA_MPU_SEGMENT_MASK 0x0000001f#define XTENSA_MPU_ACC_RIGHTS_MASK 0x00000f00
target/xtensa/op_helper.c +0 -1
@@ -31,7 +31,6 @@#include "exec/helper-proto.h" #include "qemu/host-utils.h" #include "exec/exec-all.h" -#include "exec/cpu_ldst.h" #include "qemu/timer.h" #ifndef CONFIG_USER_ONLY
Signature · 1 line
2.41.0
PATCH v2 7/11 target/helper: Remove unnecessary 'qemu/main-loop.h' header
In reply to Philippe Mathieu-Daudé"qemu/main-loop.h" declares functions related to QEMU's main loop mutex, which these files don't access. Remove the unused "qemu/main-loop.h" header.
--- target/riscv/pmu.h | 1 - target/arm/ptw.c | 1 - target/loongarch/iocsr_helper.c | 1 - target/loongarch/op_helper.c | 1 - target/mips/tcg/sysemu/lcsr_helper.c | 1 - target/nios2/op_helper.c | 1 - target/ppc/int_helper.c | 1 - target/ppc/machine.c | 1 - target/ppc/mem_helper.c | 1 - target/ppc/mmu_common.c | 1 - target/ppc/mmu_helper.c | 1 - target/ppc/power8-pmu.c | 1 - target/ppc/translate.c | 1 - target/riscv/csr.c | 1 - target/riscv/m128_helper.c | 1 - target/riscv/op_helper.c | 1 - target/s390x/tcg/crypto_helper.c | 1 - target/s390x/tcg/misc_helper.c | 1 - target/xtensa/dbg_helper.c | 1 - target/xtensa/fpu_helper.c | 1 - target/xtensa/mmu_helper.c | 1 - target/xtensa/op_helper.c | 1 - target/xtensa/win_helper.c | 1 - 23 files changed, 23 deletions(-)
target/riscv/pmu.h +0 -1
@@ -17,7 +17,6 @@*/ #include "cpu.h" -#include "qemu/main-loop.h" bool riscv_pmu_ctr_monitor_instructions (CPURISCVState *env,uint32_t target_ctr);
target/arm/ptw.c +0 -1
@@ -9,7 +9,6 @@#include "qemu/osdep.h" #include "qemu/log.h" #include "qemu/range.h" -#include "qemu/main-loop.h" #include "exec/exec-all.h" #include "cpu.h" #include "internals.h"
target/loongarch/iocsr_helper.c +0 -1
@@ -6,7 +6,6 @@*/ #include "qemu/osdep.h" -#include "qemu/main-loop.h" #include "cpu.h" #include "qemu/host-utils.h" #include "exec/helper-proto.h"
target/loongarch/op_helper.c +0 -1
@@ -7,7 +7,6 @@#include "qemu/osdep.h" #include "qemu/log.h" -#include "qemu/main-loop.h" #include "cpu.h" #include "qemu/host-utils.h" #include "exec/helper-proto.h"
target/mips/tcg/sysemu/lcsr_helper.c +0 -1
@@ -7,7 +7,6 @@*/ #include "qemu/osdep.h" -#include "qemu/main-loop.h" #include "cpu.h" #include "internal.h" #include "qemu/host-utils.h"
target/nios2/op_helper.c +0 -1
@@ -22,7 +22,6 @@#include "cpu.h" #include "exec/helper-proto.h" #include "exec/exec-all.h" -#include "qemu/main-loop.h" void helper_raise_exception (CPUNios2State *env,uint32_t index) {
target/ppc/int_helper.c +0 -1
@@ -21,7 +21,6 @@#include "cpu.h" #include "internal.h" #include "qemu/host-utils.h" -#include "qemu/main-loop.h" #include "qemu/log.h" #include "exec/helper-proto.h" #include "crypto/aes.h"
target/ppc/machine.c +0 -1
@@ -7,7 +7,6 @@#include "mmu-hash64.h" #include "migration/cpu.h" #include "qapi/error.h" -#include "qemu/main-loop.h" #include "kvm_ppc.h" #include "power8-pmu.h"
target/ppc/mem_helper.c +0 -1
@@ -21,7 +21,6 @@#include "cpu.h" #include "exec/exec-all.h" #include "qemu/host-utils.h" -#include "qemu/main-loop.h" #include "exec/helper-proto.h" #include "helper_regs.h" #include "exec/cpu_ldst.h"
target/ppc/mmu_common.c +0 -1
@@ -28,7 +28,6 @@#include "exec/log.h" #include "helper_regs.h" #include "qemu/error-report.h" -#include "qemu/main-loop.h" #include "qemu/qemu-print.h" #include "internal.h" #include "mmu-book3s-v3.h"
target/ppc/mmu_helper.c +0 -1
@@ -28,7 +28,6 @@#include "exec/log.h" #include "helper_regs.h" #include "qemu/error-report.h" -#include "qemu/main-loop.h" #include "qemu/qemu-print.h" #include "internal.h" #include "mmu-book3s-v3.h"
target/ppc/power8-pmu.c +0 -1
@@ -17,7 +17,6 @@#include "exec/helper-proto.h" #include "qemu/error-report.h" #include "qemu/timer.h" -#include "qemu/main-loop.h" #include "hw/ppc/ppc.h" #include "power8-pmu.h"
target/ppc/translate.c +0 -1
@@ -26,7 +26,6 @@#include "tcg/tcg-op.h" #include "tcg/tcg-op-gvec.h" #include "qemu/host-utils.h" -#include "qemu/main-loop.h" #include "exec/helper-proto.h" #include "exec/helper-gen.h"
target/riscv/csr.c +0 -1
@@ -23,7 +23,6 @@#include "cpu.h" #include "pmu.h" #include "time_helper.h" -#include "qemu/main-loop.h" #include "exec/exec-all.h" #include "exec/tb-flush.h" #include "sysemu/cpu-timers.h"
target/riscv/m128_helper.c +0 -1
@@ -19,7 +19,6 @@#include "qemu/osdep.h" #include "cpu.h" -#include "qemu/main-loop.h" #include "exec/exec-all.h" #include "exec/helper-proto.h"
target/riscv/op_helper.c +0 -1
@@ -21,7 +21,6 @@#include "qemu/osdep.h" #include "cpu.h" #include "internals.h" -#include "qemu/main-loop.h" #include "exec/exec-all.h" #include "exec/cpu_ldst.h" #include "exec/helper-proto.h"
target/s390x/tcg/crypto_helper.c +0 -1
@@ -13,7 +13,6 @@*/ #include "qemu/osdep.h" -#include "qemu/main-loop.h" #include "qemu/guest-random.h" #include "s390x-internal.h" #include "tcg_s390x.h"
target/s390x/tcg/misc_helper.c +0 -1
@@ -20,7 +20,6 @@#include "qemu/osdep.h" #include "qemu/cutils.h" -#include "qemu/main-loop.h" #include "cpu.h" #include "s390x-internal.h" #include "qemu/host-utils.h"
target/xtensa/dbg_helper.c +0 -1
@@ -27,7 +27,6 @@#include "qemu/osdep.h" #include "qemu/log.h" -#include "qemu/main-loop.h" #include "cpu.h" #include "exec/helper-proto.h" #include "qemu/host-utils.h"
target/xtensa/fpu_helper.c +0 -1
@@ -27,7 +27,6 @@#include "qemu/osdep.h" #include "qemu/log.h" -#include "qemu/main-loop.h" #include "cpu.h" #include "exec/helper-proto.h" #include "qemu/host-utils.h"
target/xtensa/mmu_helper.c +0 -1
@@ -27,7 +27,6 @@#include "qemu/osdep.h" #include "qemu/log.h" -#include "qemu/main-loop.h" #include "qemu/qemu-print.h" #include "qemu/units.h" #include "cpu.h"
target/xtensa/op_helper.c +0 -1
@@ -26,7 +26,6 @@*/ #include "qemu/osdep.h" -#include "qemu/main-loop.h" #include "cpu.h" #include "exec/helper-proto.h" #include "qemu/host-utils.h"
target/xtensa/win_helper.c +0 -1
@@ -27,7 +27,6 @@#include "qemu/osdep.h" #include "qemu/log.h" -#include "qemu/main-loop.h" #include "cpu.h" #include "exec/helper-proto.h" #include "qemu/host-utils.h"
Signature · 1 line
2.41.0
Re: [PATCH v2 07/11] target/helper: Remove unnecessary 'qemu/main-loop.h' header
Quoted 22 lines · Philippe Mathieu-Daudé
"
qemu/main-loop.h" declares functions related to QEMU's main loop mutex, which these files don't access. Remove the unused "qemu/main-loop.h" header.Signed-off-by Philippe Mathieu-Daudé<[email protected]>--- target/riscv/pmu.h | 1 - target/arm/ptw.c | 1 - target/loongarch/iocsr_helper.c | 1 - target/loongarch/op_helper.c | 1 - target/mips/tcg/sysemu/lcsr_helper.c | 1 - target/nios2/op_helper.c | 1 - target/ppc/int_helper.c | 1 - target/ppc/machine.c | 1 - target/ppc/mem_helper.c | 1 - target/ppc/mmu_common.c | 1 - target/ppc/mmu_helper.c | 1 - target/ppc/power8-pmu.c | 1 - target/ppc/translate.c | 1 - target/riscv/csr.c | 1 - target/riscv/m128_helper.c | 1 - target/riscv/op_helper.c | 1 -
Quoted 8 lines
target/s390x/tcg/crypto_helper.c | 1 - target/s390x/tcg/misc_helper.c | 1 - target/xtensa/dbg_helper.c | 1 - target/xtensa/fpu_helper.c | 1 - target/xtensa/mmu_helper.c | 1 - target/xtensa/op_helper.c | 1 - target/xtensa/win_helper.c | 1 - 23 files changed, 23 deletions(-)
r~
PATCH v2 8/11 target/mips: Remove unused headers in lcsr_helper.c
In reply to Philippe Mathieu-DaudéThis files only access the address_space_ld/st API, declared in "exec/cpu-all.h", already included by "cpu.h".
--- target/mips/tcg/sysemu/lcsr_helper.c | 3 --- 1 file changed, 3 deletions(-)
target/mips/tcg/sysemu/lcsr_helper.c +0 -3
@@ -8,10 +8,7 @@#include "qemu/osdep.h" #include "cpu.h" -#include "internal.h" -#include "qemu/host-utils.h" #include "exec/helper-proto.h" -#include "exec/exec-all.h" #define GET_MEMTXATTRS (cas) \ ((MemTxAttrs){.requester_id = env_cpu(cas)->cpu_index})
Signature · 1 line
2.41.0
PATCH v2 9/11 target/xtensa: Include missing 'qemu/atomic.h' header
In reply to Philippe Mathieu-DaudéSince commit fa92bd4af7 ("target/xtensa: fix access to the INTERRUPT SR") these files use QEMU atomic API. Explicit the header inclusion instead of relying on implicit and indirect inclusion.
--- hw/xtensa/pic_cpu.c | 1 + target/xtensa/exc_helper.c | 1 + target/xtensa/op_helper.c | 1 + 3 files changed, 3 insertions(+)
hw/xtensa/pic_cpu.c +1 -0
@@ -30,6 +30,7 @@#include "hw/irq.h" #include "qemu/log.h" #include "qemu/timer.h" +#include "qemu/atomic.h" void check_interrupts (CPUXtensaState *env) {
target/xtensa/exc_helper.c +1 -0
@@ -31,6 +31,7 @@#include "cpu.h" #include "exec/helper-proto.h" #include "qemu/host-utils.h" +#include "qemu/atomic.h" #include "exec/exec-all.h" void HELPER (exception )(CPUXtensaState *env,uint32_t excp)
target/xtensa/op_helper.c +1 -0
@@ -30,6 +30,7 @@#include "exec/helper-proto.h" #include "qemu/host-utils.h" #include "exec/exec-all.h" +#include "qemu/atomic.h" #include "qemu/timer.h" #ifndef CONFIG_USER_ONLY
Signature · 1 line
2.41.0
Re: [PATCH v2 09/11] target/xtensa: Include missing 'qemu/atomic.h' header
Quoted 11 lines · Philippe Mathieu-Daudé
Since commit
fa92bd4af7("target/xtensa: fix access to the INTERRUPT SR") these files use QEMU atomic API. Explicit the header inclusion instead of relying on implicit and indirect inclusion.Signed-off-by Philippe Mathieu-Daudé<[email protected]>--- hw/xtensa/pic_cpu.c | 1 + target/xtensa/exc_helper.c | 1 + target/xtensa/op_helper.c | 1 + 3 files changed, 3 insertions(+)
r~
PATCH v2 10/11 qemu/processor: Remove unused 'qemu/atomic.h' header
In reply to Philippe Mathieu-Daudé--- include/qemu/processor.h | 2 -- 1 file changed, 2 deletions(-)
include/qemu/processor.h +0 -2
@@ -7,8 +7,6 @@#ifndef QEMU_PROCESSOR_H #define QEMU_PROCESSOR_H -#include "qemu/atomic.h" -#if defined(__i386__) || defined(__x86_64__)# define cpu_relax () asm volatile("rep; nop" ::: "memory")
Signature · 1 line
2.41.0
Re: [PATCH v2 10/11] qemu/processor: Remove unused 'qemu/atomic.h' header
Quoted 4 lines · Philippe Mathieu-Daudé
Signed-off-by Philippe Mathieu-Daudé<[email protected]>--- include/qemu/processor.h | 2 -- 1 file changed, 2 deletions(-)
r~
PATCH v2 11/11 exec/translation-block: Clean up includes
In reply to Philippe Mathieu-Daudé'qemu/atomic.h' and 'exec/target_page.h' are not used. 'qemu/interval-tree.h' is only required for user emulation.
--- include/exec/translation-block.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
include/exec/translation-block.h +3 -3
@@ -7,11 +7,11 @@#ifndef EXEC_TRANSLATION_BLOCK_H #define EXEC_TRANSLATION_BLOCK_H -#include "qemu/atomic.h" #include "qemu/thread.h" -#include "qemu/interval-tree.h" #include "exec/cpu-common.h" -#include "exec/target_page.h" +#ifdef CONFIG_USER_ONLY +#include "qemu/interval-tree.h" +#endif /* * Page tracking code uses ram addresses in system mode, and virtual
Signature · 1 line
2.41.0
Re: [PATCH v2 11/11] exec/translation-block: Clean up includes
Quoted 7 lines · Philippe Mathieu-Daudé
'
qemu/atomic.h' and 'exec/target_page.h' are not used. 'qemu/interval-tree.h' is only required for user emulation.Signed-off-by Philippe Mathieu-Daudé<[email protected]>--- include/exec/translation-block.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
r~