Skip to contentSkip to conversation

accel/tcg: Cleanups around 'exec/translation-block.h'

PATCH In review Philippe Mathieu-Daudé 2 participants 5 messages Dec 12, 2024 RISC-V

lore
Share & tools
lore
#0 lore raw

v2 cover accel/tcg: Cleanups around 'exec/translation-block.h'

Address Richard suggestion from [*], move
tcg_cflags_has/set() and curr_cflags() to
"exec/translation-block.h".

[*] https://lore.kernel.org/qemu-devel/[email protected]/

Philippe Mathieu-Daudé (2):
accel/tcg: Move tcg_cflags_has/set() to 'exec/translation-block.h' accel/tcg: Include missing 'exec/translation-block.h' header

 accel/tcg/internal-target.h             | 1 +
 accel/tcg/tb-hash.h                     | 1 +
 include/exec/cpu-common.h               | 6 ------
 include/exec/translation-block.h        | 6 ++++++
 target/arm/tcg/translate.h              | 1 +
 accel/tcg/cpu-exec.c                    | 1 +
 accel/tcg/tcg-accel-ops.c               | 1 +
 accel/tcg/watchpoint.c                  | 1 +
 cpu-target.c                            | 1 +
 linux-user/elfload.c                    | 1 +
 linux-user/mmap.c                       | 1 +
 linux-user/syscall.c                    | 1 +
 plugins/api.c                           | 1 +
 system/physmem.c                        | 1 +
 target/alpha/cpu.c                      | 1 +
 target/alpha/translate.c                | 1 +
 target/arm/cpu.c                        | 1 +
 target/arm/helper.c                     | 1 +
 target/avr/cpu.c                        | 1 +
 target/avr/translate.c                  | 1 +
 target/hexagon/cpu.c                    | 1 +
 target/hppa/cpu.c                       | 1 +
 target/hppa/translate.c                 | 1 +
 target/i386/cpu.c                       | 1 +
 target/i386/helper.c                    | 1 +
 target/i386/tcg/tcg-cpu.c               | 1 +
 target/i386/tcg/translate.c             | 1 +
 target/loongarch/cpu.c                  | 1 +
 target/m68k/translate.c                 | 1 +
 target/microblaze/cpu.c                 | 1 +
 target/microblaze/translate.c           | 1 +
 target/mips/tcg/exception.c             | 1 +
 target/mips/tcg/sysemu/special_helper.c | 1 +
 target/openrisc/cpu.c                   | 1 +
 target/openrisc/translate.c             | 1 +
 target/ppc/translate.c                  | 1 +
 target/riscv/tcg/tcg-cpu.c              | 1 +
 target/riscv/translate.c                | 1 +
 target/rx/cpu.c                         | 1 +
 target/rx/translate.c                   | 1 +
 target/s390x/tcg/translate.c            | 1 +
 target/sh4/cpu.c                        | 1 +
 target/sh4/translate.c                  | 1 +
 target/sparc/cpu.c                      | 1 +
 target/sparc/translate.c                | 1 +
 target/tricore/cpu.c                    | 1 +
 target/tricore/translate.c              | 1 +
 target/xtensa/translate.c               | 1 +
 48 files changed, 52 insertions(+), 6 deletions(-)
Signature · 1 line
2.45.2
#1 lore raw

PATCH v2 1/2 accel/tcg: Move tcg_cflags_has/set() to 'exec/translation-block.h'

The TranslationBlock flags are defined in 'exec/translation-block.h'. tcg_cflags_has/set() and curr_cflags() use them, it is more logical to declare them in the same place. Move them there too.

---
 include/exec/cpu-common.h               | 6 ------
 include/exec/translation-block.h        | 6 ++++++
 accel/tcg/cpu-exec.c                    | 1 +
 accel/tcg/tcg-accel-ops.c               | 1 +
 accel/tcg/watchpoint.c                  | 1 +
 linux-user/mmap.c                       | 1 +
 linux-user/syscall.c                    | 1 +
 target/arm/cpu.c                        | 1 +
 target/avr/cpu.c                        | 1 +
 target/hexagon/cpu.c                    | 1 +
 target/hppa/cpu.c                       | 1 +
 target/i386/cpu.c                       | 1 +
 target/i386/helper.c                    | 1 +
 target/loongarch/cpu.c                  | 1 +
 target/microblaze/cpu.c                 | 1 +
 target/mips/tcg/exception.c             | 1 +
 target/mips/tcg/sysemu/special_helper.c | 1 +
 target/openrisc/cpu.c                   | 1 +
 target/riscv/tcg/tcg-cpu.c              | 1 +
 target/rx/cpu.c                         | 1 +
 target/sh4/cpu.c                        | 1 +
 target/sparc/cpu.c                      | 1 +
 target/tricore/cpu.c                    | 1 +
 23 files changed, 27 insertions(+), 6 deletions(-)
include/exec/cpu-common.h +0 -6
index 638dc806a5f..bdeb9d68f32 100644
@@ -187,12 +187,6 @@ void list_cpus(void);
 
 #ifdef CONFIG_TCG
 
-bool tcg_cflags_has(CPUState *cpu, uint32_t flags);
-void tcg_cflags_set(CPUState *cpu, uint32_t flags);
-
-/* current cflags for hashing/comparison */
-uint32_t curr_cflags(CPUState *cpu);
-
 /**
  * cpu_unwind_state_data:
  * @cpu: the cpu context
include/exec/translation-block.h +6 -0
index b99afb00779..c1e48a48aab 100644
@@ -153,4 +153,10 @@ static inline uint32_t tb_cflags(const TranslationBlock *tb)
     return qatomic_read(&tb->cflags);
 }
 
+bool tcg_cflags_has(CPUState *cpu, uint32_t flags);
+void tcg_cflags_set(CPUState *cpu, uint32_t flags);
+
+/* current cflags for hashing/comparison */
+uint32_t curr_cflags(CPUState *cpu);
+
 #endif /* EXEC_TRANSLATION_BLOCK_H */
accel/tcg/cpu-exec.c +1 -0
index c13f4a7cbbf..91e742933fa 100644
@@ -25,6 +25,7 @@
 #include "trace.h"
 #include "disas/disas.h"
 #include "exec/exec-all.h"
+#include "exec/translation-block.h"
 #include "tcg/tcg.h"
 #include "qemu/atomic.h"
 #include "qemu/rcu.h"
accel/tcg/tcg-accel-ops.c +1 -0
index d9a35b7667c..6e3f1fa92b2 100644
@@ -35,6 +35,7 @@
 #include "exec/exec-all.h"
 #include "exec/hwaddr.h"
 #include "exec/tb-flush.h"
+#include "exec/translation-block.h"
 #include "gdbstub/enums.h"
 
 #include "hw/core/cpu.h"
accel/tcg/watchpoint.c +1 -0
index ca641eb95cf..facff4175a8 100644
@@ -22,6 +22,7 @@
 #include "qemu/error-report.h"
 #include "exec/exec-all.h"
 #include "exec/translate-all.h"
+#include "exec/translation-block.h"
 #include "system/tcg.h"
 #include "system/replay.h"
 #include "hw/core/tcg-cpu-ops.h"
linux-user/mmap.c +1 -0
index e4bf5d5f39c..a2f8766b5c6 100644
@@ -21,6 +21,7 @@
 #include "trace.h"
 #include "exec/log.h"
 #include "exec/page-protection.h"
+#include "exec/translation-block.h"
 #include "qemu.h"
 #include "user-internals.h"
 #include "user-mmap.h"
linux-user/syscall.c +1 -0
index 1ce4c79784f..5830014b657 100644
@@ -26,6 +26,7 @@
 #include "tcg/startup.h"
 #include "target_mman.h"
 #include "exec/page-protection.h"
+#include "exec/translation-block.h"
 #include <elf.h>
 #include <endian.h>
 #include <grp.h>
target/arm/cpu.c +1 -0
index 237f35c861a..e5be73d420a 100644
@@ -28,6 +28,7 @@
 #include "qapi/error.h"
 #include "cpu.h"
 #ifdef CONFIG_TCG
+#include "exec/translation-block.h"
 #include "hw/core/tcg-cpu-ops.h"
 #endif /* CONFIG_TCG */
 #include "internals.h"
target/avr/cpu.c +1 -0
index 3132842d565..dda63f913ca 100644
@@ -22,6 +22,7 @@
 #include "qapi/error.h"
 #include "qemu/qemu-print.h"
 #include "exec/exec-all.h"
+#include "exec/translation-block.h"
 #include "cpu.h"
 #include "disas/dis-asm.h"
 #include "tcg/debug-assert.h"
target/hexagon/cpu.c +1 -0
index 020038fc490..489d68dc50e 100644
@@ -20,6 +20,7 @@
 #include "cpu.h"
 #include "internal.h"
 #include "exec/exec-all.h"
+#include "exec/translation-block.h"
 #include "qapi/error.h"
 #include "hw/qdev-properties.h"
 #include "fpu/softfloat-helpers.h"
target/hppa/cpu.c +1 -0
index c38439c1800..c9062e60b67 100644
@@ -25,6 +25,7 @@
 #include "cpu.h"
 #include "qemu/module.h"
 #include "exec/exec-all.h"
+#include "exec/translation-block.h"
 #include "fpu/softfloat.h"
 #include "tcg/tcg.h"
 
target/i386/cpu.c +1 -0
index c5edf58421d..8bbf914c579 100644
@@ -24,6 +24,7 @@
 #include "qemu/hw-version.h"
 #include "cpu.h"
 #include "tcg/helper-tcg.h"
+#include "exec/translation-block.h"
 #include "system/hvf.h"
 #include "hvf/hvf-i386.h"
 #include "kvm/kvm_i386.h"
target/i386/helper.c +1 -0
index a78d06c95ba..3bc15fba6ee 100644
@@ -21,6 +21,7 @@
 #include "qapi/qapi-events-run-state.h"
 #include "cpu.h"
 #include "exec/exec-all.h"
+#include "exec/translation-block.h"
 #include "system/runstate.h"
 #ifndef CONFIG_USER_ONLY
 #include "system/hw_accel.h"
target/loongarch/cpu.c +1 -0
index 078766feafc..dfdd1f78602 100644
@@ -15,6 +15,7 @@
 #include "system/kvm.h"
 #include "kvm/kvm_loongarch.h"
 #include "exec/exec-all.h"
+#include "exec/translation-block.h"
 #include "cpu.h"
 #include "internals.h"
 #include "fpu/softfloat-helpers.h"
target/microblaze/cpu.c +1 -0
index 710eb1146c1..a5658f1aae0 100644
@@ -30,6 +30,7 @@
 #include "exec/exec-all.h"
 #include "exec/cpu_ldst.h"
 #include "exec/gdbstub.h"
+#include "exec/translation-block.h"
 #include "fpu/softfloat-helpers.h"
 #include "tcg/tcg.h"
 
target/mips/tcg/exception.c +1 -0
index 4886d087b2e..1a8902ea1bc 100644
@@ -24,6 +24,7 @@
 #include "internal.h"
 #include "exec/helper-proto.h"
 #include "exec/exec-all.h"
+#include "exec/translation-block.h"
 
 target_ulong exception_resume_pc(CPUMIPSState *env)
 {
target/mips/tcg/sysemu/special_helper.c +1 -0
index 9ce5e2ceac5..3ce3ae1e124 100644
@@ -23,6 +23,7 @@
 #include "cpu.h"
 #include "exec/helper-proto.h"
 #include "exec/exec-all.h"
+#include "exec/translation-block.h"
 #include "internal.h"
 
 /* Specials */
target/openrisc/cpu.c +1 -0
index b96561d1f26..c11a09cd062 100644
@@ -22,6 +22,7 @@
 #include "qemu/qemu-print.h"
 #include "cpu.h"
 #include "exec/exec-all.h"
+#include "exec/translation-block.h"
 #include "fpu/softfloat-helpers.h"
 #include "tcg/tcg.h"
 
target/riscv/tcg/tcg-cpu.c +1 -0
index c62c2216961..958b8c89cbf 100644
@@ -19,6 +19,7 @@
 
 #include "qemu/osdep.h"
 #include "exec/exec-all.h"
+#include "exec/translation-block.h"
 #include "tcg-cpu.h"
 #include "cpu.h"
 #include "internals.h"
target/rx/cpu.c +1 -0
index 65a74ce720f..945ae6e9e50 100644
@@ -23,6 +23,7 @@
 #include "migration/vmstate.h"
 #include "exec/exec-all.h"
 #include "exec/page-protection.h"
+#include "exec/translation-block.h"
 #include "hw/loader.h"
 #include "fpu/softfloat.h"
 #include "tcg/debug-assert.h"
target/sh4/cpu.c +1 -0
index 8f07261dcfd..2a51d9e35c7 100644
@@ -25,6 +25,7 @@
 #include "cpu.h"
 #include "migration/vmstate.h"
 #include "exec/exec-all.h"
+#include "exec/translation-block.h"
 #include "fpu/softfloat-helpers.h"
 #include "tcg/tcg.h"
 
target/sparc/cpu.c +1 -0
index dd7af86de73..1480571a1bf 100644
@@ -23,6 +23,7 @@
 #include "qemu/module.h"
 #include "qemu/qemu-print.h"
 #include "exec/exec-all.h"
+#include "exec/translation-block.h"
 #include "hw/qdev-properties.h"
 #include "qapi/visitor.h"
 #include "tcg/tcg.h"
target/tricore/cpu.c +1 -0
index 1a261715907..95fb546666f 100644
@@ -21,6 +21,7 @@
 #include "qapi/error.h"
 #include "cpu.h"
 #include "exec/exec-all.h"
+#include "exec/translation-block.h"
 #include "qemu/error-report.h"
 #include "tcg/debug-assert.h"
 
Signature · 1 line
2.45.2
#2 lore raw

Re: [PATCH v2 1/2] accel/tcg: Move tcg_cflags_has/set() to 'exec/translation-block.h'

Quoted 54 lines · Philippe Mathieu-Daudé

The TranslationBlock flags are defined in 'exec/translation-block.h'. tcg_cflags_has/set() and curr_cflags() use them, it is more logical to declare them in the same place. Move them there too.

---
  include/exec/cpu-common.h               | 6 ------
  include/exec/translation-block.h        | 6 ++++++
  accel/tcg/cpu-exec.c                    | 1 +
  accel/tcg/tcg-accel-ops.c               | 1 +
  accel/tcg/watchpoint.c                  | 1 +
  linux-user/mmap.c                       | 1 +
  linux-user/syscall.c                    | 1 +
  target/arm/cpu.c                        | 1 +
  target/avr/cpu.c                        | 1 +
  target/hexagon/cpu.c                    | 1 +
  target/hppa/cpu.c                       | 1 +
  target/i386/cpu.c                       | 1 +
  target/i386/helper.c                    | 1 +
  target/loongarch/cpu.c                  | 1 +
  target/microblaze/cpu.c                 | 1 +
  target/mips/tcg/exception.c             | 1 +
  target/mips/tcg/sysemu/special_helper.c | 1 +
  target/openrisc/cpu.c                   | 1 +
  target/riscv/tcg/tcg-cpu.c              | 1 +
  target/rx/cpu.c                         | 1 +
  target/sh4/cpu.c                        | 1 +
  target/sparc/cpu.c                      | 1 +
  target/tricore/cpu.c                    | 1 +
  23 files changed, 27 insertions(+), 6 deletions(-)
include/exec/cpu-common.h +0 -6
index 638dc806a5f..bdeb9d68f32 100644
@@ -187,12 +187,6 @@ void list_cpus(void);
 
  #ifdef CONFIG_TCG
 
-bool tcg_cflags_has(CPUState *cpu, uint32_t flags);
-void tcg_cflags_set(CPUState *cpu, uint32_t flags);
-
-/* current cflags for hashing/comparison */
-uint32_t curr_cflags(CPUState *cpu);
-
  /**
   * cpu_unwind_state_data:
   * @cpu: the cpu context
include/exec/translation-block.h +0 -0
index b99afb00779..c1e48a48aab 100644

include/exec/translation-block.h static inline uint32_t tb_cflags(const TranslationBlock *tb) · line 160

Quoted 8 lines
include/exec/translation-block.h +5 -0
@@ -153,4 +153,10 @@ static inline uint32_t tb_cflags(const TranslationBlock *tb)
      return qatomic_read(&tb->cflags);
  }
 
+bool tcg_cflags_has(CPUState *cpu, uint32_t flags);
+void tcg_cflags_set(CPUState *cpu, uint32_t flags);
+
+/* current cflags for hashing/comparison */
+uint32_t curr_cflags(CPUState *cpu);

Per this comment I suppose accel/tcg/tb-hash.h is better for curr_cflags(). Also because it is internal to accel/tcg/.

Quoted 2 lines
include/exec/translation-block.h +1 -0
+
  #endif /* EXEC_TRANSLATION_BLOCK_H */
Reviewed-by
#3 lore raw

Re: [PATCH v2 1/2] accel/tcg: Move tcg_cflags_has/set() to 'exec/translation-block.h'

Quoted 55 lines · Philippe Mathieu-Daudé
Quoted 54 lines · Philippe Mathieu-Daudé

The TranslationBlock flags are defined in 'exec/translation-block.h'. tcg_cflags_has/set() and curr_cflags() use them, it is more logical to declare them in the same place. Move them there too.

---
  include/exec/cpu-common.h               | 6 ------ include/exec/translation-block.h        | 6 ++++++ accel/tcg/cpu-exec.c                    | 1 + accel/tcg/tcg-accel-ops.c               | 1 + accel/tcg/watchpoint.c                  | 1 + linux-user/mmap.c                       | 1 + linux-user/syscall.c                    | 1 + target/arm/cpu.c                        | 1 + target/avr/cpu.c                        | 1 + target/hexagon/cpu.c                    | 1 + target/hppa/cpu.c                       | 1 + target/i386/cpu.c                       | 1 + target/i386/helper.c                    | 1 + target/loongarch/cpu.c                  | 1 + target/microblaze/cpu.c                 | 1 + target/mips/tcg/exception.c             | 1 + target/mips/tcg/sysemu/special_helper.c | 1 + target/openrisc/cpu.c                   | 1 + target/riscv/tcg/tcg-cpu.c              | 1 + target/rx/cpu.c                         | 1 + target/sh4/cpu.c                        | 1 + target/sparc/cpu.c                      | 1 + target/tricore/cpu.c                    | 1 +

  23 files changed, 27 insertions(+), 6 deletions(-)
include/exec/cpu-common.h +0 -6
index 638dc806a5f..bdeb9d68f32 100644
@@ -187,12 +187,6 @@ void list_cpus(void);
   #ifdef CONFIG_TCG
-bool tcg_cflags_has(CPUState *cpu, uint32_t flags);
-void tcg_cflags_set(CPUState *cpu, uint32_t flags);
-
-/* current cflags for hashing/comparison */
-uint32_t curr_cflags(CPUState *cpu);
-
   /**
    * cpu_unwind_state_data:
    * @cpu: the cpu context
include/exec/translation-block.h +0 -0
index b99afb00779..c1e48a48aab 100644
@@ -153,4 +153,10 @@ static inline uint32_t tb_cflags(const TranslationBlock *tb)
       return qatomic_read(&tb->cflags);
   }
Quoted 8 lines

include/exec/translation-block.h static inline uint32_t tb_cflags(const TranslationBlock *tb) · line 160

Quoted 5 lines
include/exec/translation-block.h +5 -0
+bool tcg_cflags_has(CPUState *cpu, uint32_t flags);
+void tcg_cflags_set(CPUState *cpu, uint32_t flags);
+
+/* current cflags for hashing/comparison */
+uint32_t curr_cflags(CPUState *cpu);

Per this comment I suppose accel/tcg/tb-hash.h is better for curr_cflags(). Also because it is internal to accel/tcg/.

Given the usage of curr_cflags() in accel/tcg/watchpoint.c, accel/tcg/internal-common.h would be the place. tb-hash.h strictly concerns the hashing itself.

With that,

#4 lore raw

PATCH v2 2/2 accel/tcg: Include missing 'exec/translation-block.h' header

In reply to Philippe Mathieu-Daudé

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;
        |            ^

Message-Id: <[email protected]>

---
 accel/tcg/internal-target.h   | 1 +
 accel/tcg/tb-hash.h           | 1 +
 target/arm/tcg/translate.h    | 1 +
 cpu-target.c                  | 1 +
 linux-user/elfload.c          | 1 +
 plugins/api.c                 | 1 +
 system/physmem.c              | 1 +
 target/alpha/cpu.c            | 1 +
 target/alpha/translate.c      | 1 +
 target/arm/helper.c           | 1 +
 target/avr/translate.c        | 1 +
 target/hppa/translate.c       | 1 +
 target/i386/tcg/tcg-cpu.c     | 1 +
 target/i386/tcg/translate.c   | 1 +
 target/m68k/translate.c       | 1 +
 target/microblaze/translate.c | 1 +
 target/openrisc/translate.c   | 1 +
 target/ppc/translate.c        | 1 +
 target/riscv/translate.c      | 1 +
 target/rx/translate.c         | 1 +
 target/s390x/tcg/translate.c  | 1 +
 target/sh4/translate.c        | 1 +
 target/sparc/translate.c      | 1 +
 target/tricore/translate.c    | 1 +
 target/xtensa/translate.c     | 1 +
 25 files changed, 25 insertions(+)
accel/tcg/internal-target.h +1 -0
index fe109724c68..efac18e3c9a 100644
@@ -11,6 +11,7 @@
 
 #include "exec/exec-all.h"
 #include "exec/translate-all.h"
+#include "exec/translation-block.h"
 
 /*
  * Access to the various translations structures need to be serialised
accel/tcg/tb-hash.h +1 -0
index a0c61f25cda..a5382f460dc 100644
@@ -22,6 +22,7 @@
 
 #include "exec/cpu-defs.h"
 #include "exec/exec-all.h"
+#include "exec/translation-block.h"
 #include "qemu/xxhash.h"
 #include "tb-jmp-cache.h"
 
target/arm/tcg/translate.h +1 -0
index 20cd0e851c4..a533aad7c47 100644
@@ -6,6 +6,7 @@
 #include "tcg/tcg-op-gvec.h"
 #include "exec/exec-all.h"
 #include "exec/translator.h"
+#include "exec/translation-block.h"
 #include "exec/helper-gen.h"
 #include "internals.h"
 #include "cpu-features.h"
cpu-target.c +1 -0
index 5a7c3290814..d04c8486b0e 100644
@@ -42,6 +42,7 @@
 #include "exec/exec-all.h"
 #include "exec/tb-flush.h"
 #include "exec/translate-all.h"
+#include "exec/translation-block.h"
 #include "exec/log.h"
 #include "hw/core/accel-cpu.h"
 #include "trace/trace-root.h"
linux-user/elfload.c +1 -0
index 471a384b222..e6f80dcd11e 100644
@@ -9,6 +9,7 @@
 #include "qemu.h"
 #include "user/tswap-target.h"
 #include "exec/page-protection.h"
+#include "exec/translation-block.h"
 #include "user/guest-base.h"
 #include "user-internals.h"
 #include "signal-common.h"
plugins/api.c +1 -0
index 24ea64e2de5..4110cfaa237 100644
@@ -43,6 +43,7 @@
 #include "tcg/tcg.h"
 #include "exec/exec-all.h"
 #include "exec/gdbstub.h"
+#include "exec/translation-block.h"
 #include "exec/translator.h"
 #include "disas/disas.h"
 #include "plugin.h"
system/physmem.c +1 -0
index 93c0ff60eb4..ac95b06ebfd 100644
@@ -34,6 +34,7 @@
 #include "exec/exec-all.h"
 #include "exec/page-protection.h"
 #include "exec/target_page.h"
+#include "exec/translation-block.h"
 #include "hw/qdev-core.h"
 #include "hw/qdev-properties.h"
 #include "hw/boards.h"
target/alpha/cpu.c +1 -0
index 5d75c941f7a..396739e3468 100644
@@ -24,6 +24,7 @@
 #include "qemu/qemu-print.h"
 #include "cpu.h"
 #include "exec/exec-all.h"
+#include "exec/translation-block.h"
 #include "fpu/softfloat.h"
 
 
target/alpha/translate.c +1 -0
index 660788d5c3c..629ff3cde92 100644
@@ -26,6 +26,7 @@
 #include "exec/helper-proto.h"
 #include "exec/helper-gen.h"
 #include "exec/translator.h"
+#include "exec/translation-block.h"
 #include "exec/log.h"
 
 #define HELPER_H "helper.h"
target/arm/helper.c +1 -0
index 63fe4ba318b..0e976a02d3e 100644
@@ -19,6 +19,7 @@
 #include "qemu/crc32c.h"
 #include "qemu/qemu-print.h"
 #include "exec/exec-all.h"
+#include "exec/translation-block.h"
 #include <zlib.h> /* for crc32 */
 #include "hw/irq.h"
 #include "system/cpu-timers.h"
target/avr/translate.c +1 -0
index 2d518921159..f13b997f8d9 100644
@@ -23,6 +23,7 @@
 #include "tcg/tcg.h"
 #include "cpu.h"
 #include "exec/exec-all.h"
+#include "exec/translation-block.h"
 #include "tcg/tcg-op.h"
 #include "exec/helper-proto.h"
 #include "exec/helper-gen.h"
target/hppa/translate.c +1 -0
index 51c1762435a..d13f80fe3e4 100644
@@ -27,6 +27,7 @@
 #include "exec/helper-proto.h"
 #include "exec/helper-gen.h"
 #include "exec/translator.h"
+#include "exec/translation-block.h"
 #include "exec/log.h"
 
 #define HELPER_H "helper.h"
target/i386/tcg/tcg-cpu.c +1 -0
index cca19cd40e8..231ecac37d1 100644
@@ -22,6 +22,7 @@
 #include "helper-tcg.h"
 #include "qemu/accel.h"
 #include "hw/core/accel-cpu.h"
+#include "exec/translation-block.h"
 
 #include "tcg-cpu.h"
 
target/i386/tcg/translate.c +1 -0
index 5d729e68c98..b5439a558e4 100644
@@ -21,6 +21,7 @@
 #include "qemu/host-utils.h"
 #include "cpu.h"
 #include "exec/exec-all.h"
+#include "exec/translation-block.h"
 #include "tcg/tcg-op.h"
 #include "tcg/tcg-op-gvec.h"
 #include "exec/translator.h"
target/m68k/translate.c +1 -0
index ad3ce345014..077151c62d9 100644
@@ -21,6 +21,7 @@
 #include "qemu/osdep.h"
 #include "cpu.h"
 #include "exec/exec-all.h"
+#include "exec/translation-block.h"
 #include "tcg/tcg-op.h"
 #include "qemu/log.h"
 #include "qemu/qemu-print.h"
target/microblaze/translate.c +1 -0
index 4beaf69e76a..d53995c26d1 100644
@@ -26,6 +26,7 @@
 #include "exec/helper-proto.h"
 #include "exec/helper-gen.h"
 #include "exec/translator.h"
+#include "exec/translation-block.h"
 #include "qemu/qemu-print.h"
 
 #include "exec/log.h"
target/openrisc/translate.c +1 -0
index ca566847cb4..028ba66631f 100644
@@ -26,6 +26,7 @@
 #include "qemu/bitops.h"
 #include "qemu/qemu-print.h"
 #include "exec/translator.h"
+#include "exec/translation-block.h"
 
 #include "exec/helper-proto.h"
 #include "exec/helper-gen.h"
target/ppc/translate.c +1 -0
index 47ca50a064b..8ab87f42d67 100644
@@ -30,6 +30,7 @@
 #include "exec/helper-gen.h"
 
 #include "exec/translator.h"
+#include "exec/translation-block.h"
 #include "exec/log.h"
 #include "qemu/atomic128.h"
 #include "spr_common.h"
target/riscv/translate.c +1 -0
index bccaf8e89a6..5fedde363f7 100644
@@ -25,6 +25,7 @@
 #include "exec/helper-gen.h"
 
 #include "exec/translator.h"
+#include "exec/translation-block.h"
 #include "exec/log.h"
 #include "semihosting/semihost.h"
 
target/rx/translate.c +1 -0
index 9aade2b6e5c..4f43654bad0 100644
@@ -25,6 +25,7 @@
 #include "exec/helper-proto.h"
 #include "exec/helper-gen.h"
 #include "exec/translator.h"
+#include "exec/translation-block.h"
 #include "exec/log.h"
 
 #define HELPER_H "helper.h"
target/s390x/tcg/translate.c +1 -0
index bcfff40b255..e78815c4f7f 100644
@@ -40,6 +40,7 @@
 #include "exec/helper-gen.h"
 
 #include "exec/translator.h"
+#include "exec/translation-block.h"
 #include "exec/log.h"
 #include "qemu/atomic128.h"
 
target/sh4/translate.c +1 -0
index 53b092175dc..f076da9bac8 100644
@@ -23,6 +23,7 @@
 #include "tcg/tcg-op.h"
 #include "exec/helper-proto.h"
 #include "exec/helper-gen.h"
+#include "exec/translation-block.h"
 #include "exec/translator.h"
 #include "exec/log.h"
 #include "qemu/qemu-print.h"
target/sparc/translate.c +1 -0
index cdd0a95c03d..aeb0f826346 100644
@@ -27,6 +27,7 @@
 #include "tcg/tcg-op-gvec.h"
 #include "exec/helper-gen.h"
 #include "exec/translator.h"
+#include "exec/translation-block.h"
 #include "exec/log.h"
 #include "fpu/softfloat.h"
 #include "asi.h"
target/tricore/translate.c +1 -0
index 4a12d2ca191..2b67395c09e 100644
@@ -30,6 +30,7 @@
 
 #include "tricore-opcodes.h"
 #include "exec/translator.h"
+#include "exec/translation-block.h"
 #include "exec/log.h"
 
 #define HELPER_H "helper.h"
target/xtensa/translate.c +1 -0
index f4da4a40f94..3c62c99b4fe 100644
@@ -37,6 +37,7 @@
 #include "qemu/qemu-print.h"
 #include "semihosting/semihost.h"
 #include "exec/translator.h"
+#include "exec/translation-block.h"
 
 #include "exec/helper-proto.h"
 #include "exec/helper-gen.h"
Signature · 1 line
2.45.2