qemu/target/arm/tcg
Philippe Mathieu-Daudé 68df8c8dba accel/tcg: Include missing 'exec/translation-block.h' header
TB compile flags, tb_page_addr_t type, tb_cflags() and few
other methods are defined in "exec/translation-block.h".

All these files don't include "exec/translation-block.h" but
include "exec/exec-all.h" which include it. Explicitly include
"exec/translation-block.h" to be able to remove it from
"exec/exec-all.h" later when it won't be necessary. Otherwise
we'd get errors such:

  accel/tcg/internal-target.h:59:20: error: a parameter list without types is only allowed in a function definition
     59 | void tb_lock_page0(tb_page_addr_t);
        |                    ^
  accel/tcg/tb-hash.h:64:23: error: unknown type name 'tb_page_addr_t'
     64 | uint32_t tb_hash_func(tb_page_addr_t phys_pc, vaddr pc,
        |                       ^
  accel/tcg/tcg-accel-ops.c:62:36: error: use of undeclared identifier 'CF_CLUSTER_SHIFT'
     62 |     cflags = cpu->cluster_index << CF_CLUSTER_SHIFT;
        |                                    ^
  accel/tcg/watchpoint.c:102:47: error: use of undeclared identifier 'CF_NOIRQ'
    102 |                     cpu->cflags_next_tb = 1 | CF_NOIRQ | curr_cflags(cpu);
        |                                               ^
  target/i386/helper.c:536:28: error: use of undeclared identifier 'CF_PCREL'
    536 |     if (tcg_cflags_has(cs, CF_PCREL)) {
        |                            ^
  target/rx/cpu.c:51:21: error: incomplete definition of type 'struct TranslationBlock'
     51 |     cpu->env.pc = tb->pc;
        |                   ~~^
  system/physmem.c:2977:9: error: call to undeclared function 'tb_invalidate_phys_range'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
   2977 |         tb_invalidate_phys_range(addr, addr + length - 1);
        |         ^
  plugins/api.c:96:12: error: call to undeclared function 'tb_cflags'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     96 |     return tb_cflags(tcg_ctx->gen_tb) & CF_MEMI_ONLY;
        |            ^

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20241114011310.3615-5-philmd@linaro.org>
2024-12-20 17:44:57 +01:00
..
a32-uncond.decode target/arm: move translate modules to tcg/ 2023-02-27 13:27:04 +00:00
a32.decode target/arm: move translate modules to tcg/ 2023-02-27 13:27:04 +00:00
a64.decode target/arm: Add decodetree entry for DSB nXS variant 2024-12-17 15:17:46 +00:00
arm_ldst.h target/arm: Move translate-a32.h, arm_ldst.h, sve_ldst_internal.h to tcg/ 2023-05-12 15:43:36 +01:00
cpu-v7m.c target/arm: Implement TCGCPUOps.tlb_fill_align 2024-10-13 11:27:06 -07:00
cpu32.c target/arm/tcg/: fix typo in FEAT name 2024-11-26 16:15:23 +00:00
cpu64.c target/arm: Enable FEAT_XS for the max cpu 2024-12-17 15:17:46 +00:00
crypto_helper.c crypto: Create sm4_subword 2023-09-11 11:45:55 +10:00
gengvec.c target/arm: Introduce gen_gvec_urecpe, gen_gvec_ursqrte 2024-12-13 13:39:24 +00:00
gengvec64.c target/arm: Inline scalar SUQADD and USQADD 2024-05-30 15:24:39 +01:00
helper-a64.c accel/tcg: Declare cpu_loop_exit_requested() in 'exec/cpu-common.h' 2024-12-20 17:44:57 +01:00
helper-a64.h target/arm: Use float_status in helper_fcvtx_f64_to_f32 2024-12-17 15:05:42 +00:00
helper-mve.h target/arm: Move helper-{a64,mve,sme,sve}.h to tcg/ 2023-05-12 15:43:37 +01:00
helper-sme.h target/arm: Convert sme_helper.c to fpst alias 2024-12-17 15:05:41 +00:00
helper-sve.h target/arm: Convert sve_helper.c to fpst alias 2024-12-17 15:05:41 +00:00
hflags.c Revert "target/arm: Fix usage of MMU indexes when EL3 is AArch32" 2024-11-05 10:09:58 +00:00
iwmmxt_helper.c target/arm: move helpers to tcg/ 2023-02-27 13:27:04 +00:00
m-nocp.decode target/arm: move translate modules to tcg/ 2023-02-27 13:27:04 +00:00
m_helper.c target/arm: Pass MemOp to get_phys_addr 2024-10-13 11:27:06 -07:00
meson.build target/arm: Move some TLBI insns to their own source file 2024-12-13 15:41:09 +00:00
mte_helper.c user: Move various declarations out of 'exec/exec-all.h' 2024-12-20 17:44:57 +01:00
mte_helper.h target/arm: Make some MTE helpers widely available 2024-07-05 12:35:11 +01:00
mve.decode target/arm: move translate modules to tcg/ 2023-02-27 13:27:04 +00:00
mve_helper.c target/arm: Rename FPCR_ QC, NZCV macros to FPSR_ 2024-07-11 11:41:33 +01:00
neon-dp.decode target/arm: Convert VQSHL, VQSHLU to gvec 2024-09-19 12:58:58 +01:00
neon-ls.decode target/arm: move translate modules to tcg/ 2023-02-27 13:27:04 +00:00
neon-shared.decode target/arm: move translate modules to tcg/ 2023-02-27 13:27:04 +00:00
neon_helper.c target/arm: Convert neon_helper.c to use env alias 2024-12-17 15:05:41 +00:00
op_helper.c target/arm: Implement fine-grained-trap handling for FEAT_XS 2024-12-17 15:17:46 +00:00
pauth_helper.c target/arm: Move feature test functions to their own header 2023-10-27 11:44:32 +01:00
psci.c include: Rename sysemu/ -> system/ 2024-12-20 17:44:56 +01:00
sme-fa64.decode target/arm: move translate modules to tcg/ 2023-02-27 13:27:04 +00:00
sme.decode target/arm: move translate modules to tcg/ 2023-02-27 13:27:04 +00:00
sme_helper.c target/arm: Convert sme_helper.c to fpst alias 2024-12-17 15:05:41 +00:00
sve.decode target/arm: Demultiplex AESE and AESMC 2023-07-08 07:30:18 +01:00
sve_helper.c accel/tcg: Move user-related declarations out of 'exec/cpu-all.h' (3/4) 2024-12-20 17:44:57 +01:00
sve_ldst_internal.h target/arm: Move translate-a32.h, arm_ldst.h, sve_ldst_internal.h to tcg/ 2023-05-12 15:43:36 +01:00
t16.decode target/arm: move translate modules to tcg/ 2023-02-27 13:27:04 +00:00
t32.decode target/arm: Use PLD, PLDW, PLI not NOP for t32 2024-05-28 14:23:52 +01:00
tlb-insns.c target/arm: Add ARM_CP_ADD_TLBI_NXS type flag to TLBI insns 2024-12-17 15:17:46 +00:00
tlb_helper.c target/arm: Implement TCGCPUOps.tlb_fill_align 2024-10-13 11:27:06 -07:00
translate-a32.h target/arm: Implement store_cpu_field_low32() macro 2024-07-11 11:41:33 +01:00
translate-a64.c target/arm: Add decodetree entry for DSB nXS variant 2024-12-17 15:17:46 +00:00
translate-a64.h target/arm: Inline scalar SUQADD and USQADD 2024-05-30 15:24:39 +01:00
translate-m-nocp.c target/arm: Rename FPCR_ QC, NZCV macros to FPSR_ 2024-07-11 11:41:33 +01:00
translate-mve.c tcg: Rename cpu_env to tcg_env 2023-10-03 08:01:02 -07:00
translate-neon.c target/arm: Introduce gen_gvec_urecpe, gen_gvec_ursqrte 2024-12-13 13:39:24 +00:00
translate-sme.c target/arm: Enable FEAT_EBF16 in the "max" CPU 2024-09-05 13:12:36 +01:00
translate-sve.c target/arm: Replace tcg_gen_dupi_vec with constants in translate-sve.c 2024-09-19 12:58:56 +01:00
translate-vfp.c target/arm: Use float_status in helper_vfp_fcvt{ds,sd} 2024-12-17 15:05:42 +00:00
translate.c target/arm: Add new MMU indexes for AArch32 Secure PL1&0 2024-11-05 10:09:58 +00:00
translate.h accel/tcg: Include missing 'exec/translation-block.h' header 2024-12-20 17:44:57 +01:00
vec_helper.c target/arm: Convert vec_helper.c to use env alias 2024-12-17 15:05:41 +00:00
vec_internal.h target/arm: Prepare bfdotadd() callers for FEAT_EBF support 2024-09-05 13:12:36 +01:00
vfp-uncond.decode target/arm: move translate modules to tcg/ 2023-02-27 13:27:04 +00:00
vfp.decode target/arm: Correct names of VFP VFNMA and VFNMS insns 2024-09-05 13:12:37 +01:00