qemu/target/sparc
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
..
asi.h target/sparc: Implement monitor ASIs 2024-06-05 09:11:17 -07:00
cpu-feature.h.inc target/sparc: Add feature bit for VIS4 2024-06-05 09:08:39 -07:00
cpu-param.h license: Update deprecated SPDX tag LGPL-2.0+ to LGPL-2.0-or-later 2024-09-20 10:11:59 +03:00
cpu-qom.h target: Move ArchCPUClass definition to 'cpu.h' 2023-11-07 13:08:48 +01:00
cpu.c accel/tcg: Move tcg_cflags_has/set() to 'exec/translation-block.h' 2024-12-20 17:44:57 +01:00
cpu.h target/sparc: Move sparc_restore_state_to_opc() to cpu.c 2024-12-20 17:44:57 +01:00
fop_helper.c target/sparc: Initialize local scratch float_status from env->fp_status 2024-12-11 15:31:03 +00:00
gdbstub.c target/sparc: Replace abi_ulong by uint32_t for TARGET_ABI32 2024-04-26 15:31:37 +02:00
helper.c target/sparc: use signed denominator in sdiv helper 2024-06-19 13:50:22 -07:00
helper.h target/sparc: Initialize local scratch float_status from env->fp_status 2024-12-11 15:31:03 +00:00
insns.decode license: Update deprecated SPDX tag LGPL-2.0+ to LGPL-2.0-or-later 2024-09-20 10:11:59 +03:00
int32_helper.c include: Rename sysemu/ -> system/ 2024-12-20 17:44:56 +01:00
int64_helper.c target/sparc: Prefer fast cpu_env() over slower CPU QOM cast macro 2024-03-12 12:04:25 +01:00
Kconfig meson: Introduce target-specific Kconfig 2021-07-09 18:21:34 +02:00
ldst_helper.c accel/tcg: Move user-related declarations out of 'exec/cpu-all.h' (3/4) 2024-12-20 17:44:57 +01:00
machine.c target/sparc: Add FQ and FSR.QNE 2024-09-11 19:54:35 -07:00
meson.build target/sparc: Remove CC_OP leftovers 2023-11-05 12:03:17 -08:00
mmu_helper.c exec/cpu: Extract page-protection definitions to page-protection.h 2024-05-06 11:17:15 +02:00
monitor.c target/sparc: Handle FPRS correctly on big-endian hosts 2023-07-25 14:42:00 +02:00
trace-events docs: fix references to docs/devel/tracing.rst 2021-06-02 06:51:09 +02:00
trace.h trace: switch position of headers to what Meson requires 2020-08-21 06:18:24 -04:00
translate.c accel/tcg: Include missing 'exec/translation-block.h' header 2024-12-20 17:44:57 +01:00
translate.h target/sparc: Move sparc_restore_state_to_opc() to cpu.c 2024-12-20 17:44:57 +01:00
vis_helper.c target/sparc: Implement VIS4 comparisons 2024-06-05 09:09:36 -07:00
win_helper.c target/sparc: Use memcpy() and remove memcpy32() 2024-12-12 14:28:38 -06:00