Skip to content

RFC cpu: Move CPUClass::has_work() to TCGCPUOps

Philippe Mathieu-Daudé qemu-arm qemu-devel qemu-riscv 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 RFC Latest8 patches 10 repliesIn review
  2. v1 RFC7 patches 4 repliesSuperseded

Changes in v2 from the cover letter

- finished PPC
- check cc->tcg_ops->has_work non-null (thuth)

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8sysemu/tcg: Restrict tcg_exec_init() to CONFIG_TCGinclude/sysemu/tcg.h+6 -42 replies
2/8sysemu/tcg: Restrict qemu_tcg_mttcg_enabled() to TCGaccel/tcg/cpu-exec.c include/hw/core/cpu.h include/sysemu/tcg.h +1 more+11 -91 reply
3/8target/arm: Directly use arm_cpu_has_work instead of CPUClass::has_worktarget/arm/cpu.c target/arm/internals.h target/arm/op_helper.c+3 -21 reply
4/8target/s390x: Move s390_cpu_has_work to excp_helper.ctarget/s390x/cpu.c target/s390x/excp_helper.c target/s390x/internal.h+19 -170 replies
5/8target/ppc: Duplicate the TCGCPUOps structure for POWER CPUstarget/ppc/translate_init.c.inc+69 -01 reply
6/8cpu: Declare cpu_has_work() in 'sysemu/tcg.h'accel/tcg/cpu-exec.c include/hw/core/cpu.h include/sysemu/tcg.h +1 more+19 -163 replies
7/8cpu: Move CPUClass::has_work() to TCGCPUOpsaccel/tcg/cpu-exec.c hw/core/cpu.c include/hw/core/cpu.h +26 more+44 -421 reply
8/8target/arm: Restrict arm_cpu_has_work() to TCGtarget/arm/cpu.c target/arm/internals.h+2 -20 replies

Reviews trailers per patch

6 of 8 patches have a Reviewed-by or Acked-by.

PatchThomas HuthTaylor SimpsonDavid GibsonDavid HildenbrandClaudio Fontana
1/8R-b R-b
2/8R-b
3/8R-b
4/8R-b
5/8A-b
6/8
7/8R-b A-b
8/8

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 5 reviewers.

Read the v2 thread

Cover letter [RFC PATCH v2 0/8] cpu: Move CPUClass::has_work() to TCGCPUOps

Hi,

cpu_has_work() isn't used out of TCG, so restrict it to it. RFC because maybe it could?

Since v1:
- finished PPC
- check cc->tcg_ops->has_work non-null (thuth)

Based-on: <[email protected]>

Philippe Mathieu-Daudé (8):
sysemu/tcg: Restrict tcg_exec_init() to CONFIG_TCG sysemu/tcg: Restrict qemu_tcg_mttcg_enabled() to TCG target/arm: Directly use arm_cpu_has_work instead of
CPUClass::has_work
target/s390x: Move s390_cpu_has_work to excp_helper.c target/ppc: Duplicate the TCGCPUOps structure for POWER CPUs
cpu: Declare cpu_has_work() in 'sysemu/tcg.h'
cpu: Move CPUClass::has_work() to TCGCPUOps target/arm: Restrict arm_cpu_has_work() to TCG

 include/hw/core/cpu.h           | 27 -----------
 include/hw/core/tcg-cpu-ops.h   |  4 ++
 include/sysemu/tcg.h            | 30 +++++++++++--
 target/arm/internals.h          |  1 +
 target/s390x/internal.h         |  1 +
 accel/tcg/cpu-exec.c            | 12 +++++
 hw/core/cpu.c                   |  6 ---
 softmmu/cpus.c                  |  1 +
 target/alpha/cpu.c              |  2 +-
 target/arm/cpu.c                |  6 +--
 target/arm/op_helper.c          |  2 +-
 target/avr/cpu.c                |  2 +-
 target/cris/cpu.c               |  3 +-
 target/hexagon/cpu.c            |  2 +-
 target/hppa/cpu.c               |  2 +-
 target/i386/cpu.c               |  7 +--
 target/i386/tcg/tcg-cpu.c       |  6 +++
 target/lm32/cpu.c               |  2 +-
 target/m68k/cpu.c               |  2 +-
 target/microblaze/cpu.c         |  2 +-
 target/mips/cpu.c               |  2 +-
 target/moxie/cpu.c              |  2 +-
 target/nios2/cpu.c              |  2 +-
 target/openrisc/cpu.c           |  2 +-
 target/riscv/cpu.c              |  2 +-
 target/rx/cpu.c                 |  2 +-
 target/s390x/cpu.c              | 19 +-------
 target/s390x/excp_helper.c      | 18 ++++++++
 target/sh4/cpu.c                |  2 +-
 target/sparc/cpu.c              |  2 +-
 target/tilegx/cpu.c             |  2 +-
 target/tricore/cpu.c            |  2 +-
 target/unicore32/cpu.c          |  2 +-
 target/xtensa/cpu.c             |  2 +-
 tcg/tcg.c                       |  1 +
 target/ppc/translate_init.c.inc | 79 ++++++++++++++++++++++++++++++---
 36 files changed, 171 insertions(+), 90 deletions(-)
Signature · 1 line
2.26.2