On Fri, 15 Nov 2024 at 15:23, Philippe Mathieu-Daudé <phi...@linaro.org> wrote:
>
> Signed-off-by: Philippe Mathieu-Daudé <phi...@linaro.org>
> ---
>  include/exec/translate-all.h | 3 +--
>  accel/tcg/translate-all.c    | 2 +-
>  target/i386/helper.c         | 3 ++-
>  target/openrisc/sys_helper.c | 7 +++----
>  4 files changed, 7 insertions(+), 8 deletions(-)
>
> diff --git a/include/exec/translate-all.h b/include/exec/translate-all.h
> index f06cfedd52..9303318953 100644
> --- a/include/exec/translate-all.h
> +++ b/include/exec/translate-all.h
> @@ -23,7 +23,6 @@
>
>  /**
>   * cpu_unwind_state_data:
> - * @cpu: the cpu context
>   * @host_pc: the host pc within the translation
>   * @data: output data
>   *
> @@ -32,7 +31,7 @@
>   * function returns false; otherwise @data is loaded.
>   * This is the same unwind info as given to restore_state_to_opc.
>   */
> -bool cpu_unwind_state_data(CPUState *cpu, uintptr_t host_pc, uint64_t *data);
> +bool cpu_unwind_state_data(uintptr_t host_pc, uint64_t *data);
>
>  /* translate-all.c */
>  void tb_check_watchpoint(CPUState *cpu, uintptr_t retaddr);
> diff --git a/accel/tcg/translate-all.c b/accel/tcg/translate-all.c
> index fdf6d8ac19..8d5530e341 100644
> --- a/accel/tcg/translate-all.c
> +++ b/accel/tcg/translate-all.c
> @@ -243,7 +243,7 @@ bool cpu_restore_state(CPUState *cpu, uintptr_t host_pc)
>      return false;
>  }
>
> -bool cpu_unwind_state_data(CPUState *cpu, uintptr_t host_pc, uint64_t *data)
> +bool cpu_unwind_state_data(uintptr_t host_pc, uint64_t *data)
>  {
>      if (in_code_gen_buffer((const void *)(host_pc - tcg_splitwx_diff))) {
>          TranslationBlock *tb = tcg_tb_lookup(host_pc);
> diff --git a/target/i386/helper.c b/target/i386/helper.c
> index 01a268a30b..b848936441 100644
> --- a/target/i386/helper.c
> +++ b/target/i386/helper.c
> @@ -29,6 +29,7 @@
>  #endif
>  #include "qemu/log.h"
>  #ifdef CONFIG_TCG
> +#include "exec/translate-all.h"

Ah, here are those includes. These should be in the
previous patch I think.


-- PMM

Reply via email to