mbox series

[00/10] accel/tcg: API prototype cleanups

Message ID 20241115152053.66442-1-philmd@linaro.org
Headers show
Series accel/tcg: API prototype cleanups | expand

Message

Philippe Mathieu-Daudé Nov. 15, 2024, 3:20 p.m. UTC
Preparatory cleanup patches extracted to bigger series which
rename TCG frontend functions to avoid name clash when linking
multiple target into the same binary.

Worth to remove few QOM cast boilerplate, per diff-stat:

 64 files changed, 230 insertions(+), 355 deletions(-)
                   ---                ^^^

Philippe Mathieu-Daudé (10):
  target/mips: Drop left-over comment about Jazz machine
  target/loongarch: Declare loongarch_cpu_dump_state() locally
  target/sparc: Move sparc_restore_state_to_opc() to cpu.c
  accel/tcg: Ensure frontends define restore_state_to_opc handler
  accel/tcg: Move cpu_unwind_state_data() declaration
  accel/tcg: Remove cpu_unwind_state_data() unused CPUState argument
  accel/tcg: Reduce log_pc() declaration scope
  hw/core/cpu: Pass CPUArchState to set/get_pc() handlers
  hw/core/cpu: Pass CPUArchState to restore_state_to_opc() handler
  hw/core/cpu: Pass CPUArchState to cpu_dump_state() handler

 accel/tcg/internal-target.h    | 10 ---------
 include/exec/cpu-common.h      | 13 ------------
 include/exec/translate-all.h   | 11 ++++++++++
 include/hw/core/cpu.h          |  8 +++----
 include/hw/core/tcg-cpu-ops.h  |  2 +-
 target/alpha/cpu.h             |  2 +-
 target/arm/internals.h         |  2 +-
 target/hppa/cpu.h              |  2 +-
 target/i386/cpu.h              |  2 +-
 target/loongarch/internals.h   |  2 --
 target/m68k/cpu.h              |  2 +-
 target/microblaze/cpu.h        |  2 +-
 target/mips/tcg/tcg-internal.h |  2 +-
 target/openrisc/cpu.h          |  2 +-
 target/ppc/cpu.h               |  2 +-
 target/rx/cpu.h                |  2 +-
 target/s390x/s390x-internal.h  |  4 ++--
 target/sh4/cpu.h               |  2 +-
 target/sparc/cpu.h             | 11 +++++++---
 target/tricore/cpu.h           |  2 +-
 target/xtensa/cpu.h            |  2 +-
 accel/tcg/cpu-exec.c           | 25 +++++++++++++++++-----
 accel/tcg/translate-all.c      |  6 +++---
 hw/core/cpu-common.c           |  2 +-
 hw/core/generic-loader.c       |  2 +-
 target/alpha/cpu.c             | 10 +++------
 target/alpha/helper.c          |  3 +--
 target/arm/cpu.c               | 28 ++++++++----------------
 target/avr/cpu.c               | 19 ++++++-----------
 target/hexagon/cpu.c           | 21 +++++++-----------
 target/hppa/cpu.c              | 18 ++++++----------
 target/hppa/helper.c           |  3 +--
 target/hppa/int_helper.c       |  2 +-
 target/hppa/sys_helper.c       |  6 ++----
 target/i386/cpu-dump.c         |  5 ++---
 target/i386/cpu.c              | 12 ++++-------
 target/i386/helper.c           |  3 ++-
 target/i386/tcg/tcg-cpu.c      |  4 +---
 target/loongarch/cpu.c         | 15 ++++++-------
 target/m68k/cpu.c              | 19 ++++++-----------
 target/m68k/translate.c        |  3 +--
 target/microblaze/cpu.c        | 22 +++++++------------
 target/microblaze/translate.c  |  3 +--
 target/mips/cpu.c              | 17 +++++----------
 target/mips/tcg/translate.c    |  4 +---
 target/openrisc/cpu.c          | 24 ++++++++-------------
 target/openrisc/sys_helper.c   |  7 +++---
 target/openrisc/translate.c    |  3 +--
 target/ppc/cpu_init.c          | 23 +++++++-------------
 target/riscv/cpu.c             | 16 ++++----------
 target/riscv/tcg/tcg-cpu.c     |  4 +---
 target/rx/cpu.c                | 18 ++++++----------
 target/rx/translate.c          |  3 +--
 target/s390x/cpu-dump.c        |  3 +--
 target/s390x/cpu.c             | 12 ++++-------
 target/s390x/tcg/translate.c   |  3 +--
 target/sh4/cpu.c               | 20 ++++++-----------
 target/sh4/translate.c         |  3 +--
 target/sparc/cpu.c             | 39 ++++++++++++++++++++++++----------
 target/sparc/translate.c       | 32 ----------------------------
 target/tricore/cpu.c           | 12 +++++------
 target/tricore/translate.c     |  3 +--
 target/xtensa/cpu.c            | 18 ++++++----------
 target/xtensa/translate.c      |  3 +--
 64 files changed, 230 insertions(+), 355 deletions(-)