Skip to content

accel/tcg: Introduce TCGCPUOps::get_cpu_state() handler

Philippe Mathieu-Daudé qemu-arm qemu-devel qemu-riscv 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest27 patches 14 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/27accel/tcg: Ensure frontends define restore_state_to_opc handleraccel/tcg/cpu-exec.c+4 -10 replies
2/27accel/tcg: Introduce TCGCPUOps::get_cpu_state() handleraccel/tcg/internal-target.h accel/tcg/translate-all.c include/hw/core/tcg-cpu-ops.h +18 more+51 -00 replies
3/27target/alpha: Convert to TCGCPUOps::get_cpu_state()target/alpha/cpu.c target/alpha/cpu.h+12 -130 replies
4/27target/arm: Restrict TCG-specific declarationstarget/arm/internals.h+2 -20 replies
5/27target/arm: Convert to TCGCPUOps::get_cpu_state()target/arm/cpu.c target/arm/cpu.h target/arm/helper.c +3 more+113 -1180 replies
6/27target/avr: Convert to TCGCPUOps::get_cpu_state()target/avr/cpu.c target/avr/cpu.h+19 -200 replies
7/27target/cris: Convert to TCGCPUOps::get_cpu_state()target/cris/cpu.c target/cris/cpu.h+11 -120 replies
8/27target/hexagon: Convert to TCGCPUOps::get_cpu_state()target/hexagon/cpu.c target/hexagon/cpu.h+13 -141 reply
9/27target/hppa: Convert to TCGCPUOps::get_cpu_state()target/hppa/cpu.c target/hppa/cpu.h+43 -440 replies
10/27target/i386: Convert to TCGCPUOps::get_cpu_state()target/i386/cpu.c target/i386/cpu.h target/i386/tcg/tcg-cpu.c+16 -171 reply
11/27target/loongarch: Convert to TCGCPUOps::get_cpu_state()target/loongarch/cpu.c target/loongarch/cpu.h+15 -140 replies
12/27target/m68k: Convert to TCGCPUOps::get_cpu_state()target/m68k/cpu.c target/m68k/cpu.h+17 -180 replies
13/27target/microblaze: Convert to TCGCPUOps::get_cpu_state()target/microblaze/cpu.c target/microblaze/cpu.h+9 -100 replies
14/27target/mips: Convert to TCGCPUOps::get_cpu_state()target/mips/cpu.c target/mips/cpu.h target/mips/tcg/tcg-internal.h +1 more+12 -110 replies
15/27target/nios2: Convert to TCGCPUOps::get_cpu_state()target/nios2/cpu.c target/nios2/cpu.h+13 -140 replies
16/27target/openrisc: Convert to TCGCPUOps::get_cpu_state()target/openrisc/cpu.c target/openrisc/cpu.h+11 -120 replies
17/27target/ppc: Indent ppc_tcg_ops[] with 4 spacestarget/ppc/cpu_init.c+13 -131 reply
18/27target/ppc: Convert to TCGCPUOps::get_cpu_state()target/ppc/cpu.h target/ppc/cpu_init.c target/ppc/helper_regs.c+11 -191 reply
19/27target/riscv: Convert to TCGCPUOps::get_cpu_state()target/riscv/cpu.c target/riscv/cpu.h target/riscv/cpu_helper.c +2 more+90 -921 reply
20/27target/rx: Convert to TCGCPUOps::get_cpu_state()target/rx/cpu.c target/rx/cpu.h+10 -110 replies
21/27target/s390x: Restrict TCG-specific declarationstarget/s390x/s390x-internal.h+2 -01 reply
22/27target/s390x: Convert to TCGCPUOps::get_cpu_state()target/s390x/cpu.c target/s390x/cpu.h target/s390x/s390x-internal.h +2 more+27 -313 replies
23/27target/sh4: Convert to TCGCPUOps::get_cpu_state()target/sh4/cpu.c target/sh4/cpu.h+16 -150 replies
24/27target/sparc: Convert to TCGCPUOps::get_cpu_state()target/sparc/cpu.c target/sparc/cpu.h target/sparc/translate.c+36 -351 reply
25/27target/tricore: Convert to TCGCPUOps::get_cpu_state()target/tricore/cpu.c target/tricore/cpu.h+13 -121 reply
26/27target/xtensa: Convert to TCGCPUOps::get_cpu_state()target/xtensa/cpu.c target/xtensa/cpu.h+69 -700 replies
27/27accel/tcg: Remove check on TARGET_HAS_CPU_GET_TB_CPU_STATEaccel/tcg/cpu-exec.c accel/tcg/translate-all.c+1 -20 replies

Reviews trailers per patch

6 of 27 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchRichard HendersonDaniel Henrique BarbozaNicholas PigginThomas HuthBrian CainBastian Koppelmann
SeriesR-b
1/27
2/27
3/27
4/27
5/27
6/27
7/27
8/27R-b
9/27
10/27
11/27
12/27
13/27
14/27
15/27
16/27
17/27A-b
18/27R-b
19/27R-b
20/27
21/27R-b
22/27
23/27
24/27
25/27R-b
26/27
27/27

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

Read the v1 thread

Cover letter [PATCH-for-9.1 00/27] accel/tcg: Introduce TCGCPUOps::get_cpu_state() handler

Hi,

This series introduce a generic get_cpu_state() handler in TCGCPUOps and convert each target to it.

This is required to get a single cpu_get_tb_cpu_state() for heterogeneous emulation (since this method is called by accel/tcg/).

Regards,

Phil.

Philippe Mathieu-Daudé (27):
accel/tcg: Ensure frontends define restore_state_to_opc handler accel/tcg: Introduce TCGCPUOps::get_cpu_state() handler target/alpha: Convert to TCGCPUOps::get_cpu_state() target/arm: Restrict TCG-specific declarations target/arm: Convert to TCGCPUOps::get_cpu_state() target/avr: Convert to TCGCPUOps::get_cpu_state() target/cris: Convert to TCGCPUOps::get_cpu_state() target/hexagon: Convert to TCGCPUOps::get_cpu_state() target/hppa: Convert to TCGCPUOps::get_cpu_state() target/i386: Convert to TCGCPUOps::get_cpu_state() target/loongarch: Convert to TCGCPUOps::get_cpu_state() target/m68k: Convert to TCGCPUOps::get_cpu_state() target/microblaze: Convert to TCGCPUOps::get_cpu_state() target/mips: Convert to TCGCPUOps::get_cpu_state() target/nios2: Convert to TCGCPUOps::get_cpu_state() target/openrisc: Convert to TCGCPUOps::get_cpu_state() target/ppc: Indent ppc_tcg_ops[] with 4 spaces target/ppc: Convert to TCGCPUOps::get_cpu_state() target/riscv: Convert to TCGCPUOps::get_cpu_state() target/rx: Convert to TCGCPUOps::get_cpu_state() target/s390x: Restrict TCG-specific declarations target/s390x: Convert to TCGCPUOps::get_cpu_state() target/sh4: Convert to TCGCPUOps::get_cpu_state() target/sparc: Convert to TCGCPUOps::get_cpu_state() target/tricore: Convert to TCGCPUOps::get_cpu_state() target/xtensa: Convert to TCGCPUOps::get_cpu_state() accel/tcg: Remove check on TARGET_HAS_CPU_GET_TB_CPU_STATE

 accel/tcg/internal-target.h             |   2 +
 include/hw/core/tcg-cpu-ops.h           |   3 +
 target/alpha/cpu.h                      |  11 ---
 target/arm/cpu.h                        |   3 -
 target/arm/internals.h                  |   6 +-
 target/avr/cpu.h                        |  18 ----
 target/cris/cpu.h                       |  10 ---
 target/hexagon/cpu.h                    |  12 ---
 target/hppa/cpu.h                       |  42 ---------
 target/i386/cpu.h                       |  14 ---
 target/loongarch/cpu.h                  |  12 ---
 target/m68k/cpu.h                       |  16 ----
 target/microblaze/cpu.h                 |   8 --
 target/mips/cpu.h                       |   9 --
 target/mips/tcg/tcg-internal.h          |   2 +
 target/nios2/cpu.h                      |  12 ---
 target/openrisc/cpu.h                   |  10 ---
 target/ppc/cpu.h                        |  14 +--
 target/riscv/cpu.h                      |   3 -
 target/rx/cpu.h                         |   9 --
 target/s390x/cpu.h                      |  28 ------
 target/s390x/s390x-internal.h           |   4 +
 target/sh4/cpu.h                        |  15 ----
 target/sparc/cpu.h                      |  35 +-------
 target/tricore/cpu.h                    |  12 ---
 target/xtensa/cpu.h                     |  68 ---------------
 accel/tcg/cpu-exec.c                    |   6 +-
 accel/tcg/translate-all.c               |   8 ++
 target/alpha/cpu.c                      |  12 +++
 target/arm/cpu.c                        | 110 ++++++++++++++++++++++++
 target/arm/helper.c                     | 109 -----------------------
 target/arm/tcg-stubs.c                  |   4 -
 target/arm/tcg/cpu-v7m.c                |   1 +
 target/avr/cpu.c                        |  19 ++++
 target/cris/cpu.c                       |  11 +++
 target/hexagon/cpu.c                    |  13 +++
 target/hppa/cpu.c                       |  43 +++++++++
 target/i386/cpu.c                       |   2 +-
 target/i386/tcg/tcg-cpu.c               |  15 ++++
 target/loongarch/cpu.c                  |  15 ++++
 target/m68k/cpu.c                       |  17 ++++
 target/microblaze/cpu.c                 |   9 ++
 target/mips/cpu.c                       |   1 +
 target/mips/tcg/translate.c             |   9 ++
 target/nios2/cpu.c                      |  13 +++
 target/openrisc/cpu.c                   |  11 +++
 target/ppc/cpu_init.c                   |  27 +++---
 target/ppc/helper_regs.c                |  13 +--
 target/riscv/cpu.c                      |   2 +-
 target/riscv/cpu_helper.c               |  87 -------------------
 target/riscv/tcg/tcg-cpu.c              |  88 +++++++++++++++++++
 target/rx/cpu.c                         |  10 +++
 target/s390x/cpu.c                      |   1 +
 target/s390x/tcg/mem_helper.c           |   2 +-
 target/s390x/tcg/translate.c            |  23 +++++
 target/sh4/cpu.c                        |  16 ++++
 target/sparc/cpu.c                      |   1 +
 target/sparc/translate.c                |  33 +++++++
 target/tricore/cpu.c                    |  13 +++
 target/xtensa/cpu.c                     |  69 +++++++++++++++
 target/riscv/insn_trans/trans_rvv.c.inc |   2 +-
 61 files changed, 611 insertions(+), 582 deletions(-)
Signature · 1 line
2.41.0