Skip to content

target: Use ArchCPU & CPUArchState as abstract interface to target CPU

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

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest14 patches 6 repliesIn review
  2. v115 patches 13 repliesSuperseded

Changes in v2 from the cover letter

- Include Hexagon OBJECT_DECLARE_TYPE() patch
- Add missing includes to Hexagon
- Introduce OBJECT_DECLARE_CPU_TYPE() macro
- Use OBJECT_DECLARE_CPU_TYPE()

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/14meson: Display libfdt as disabled when system emulation is disabledmeson.build+3 -10 replies
2/14hw/m68k/mcf: Add missing 'exec/hwaddr.h' headerinclude/hw/m68k/mcf.h+1 -00 replies
3/14hw/tricore: Remove unused and incorrect headerinclude/hw/tricore/triboard.h+0 -10 replies
4/14exec/cpu_ldst: Include 'cpu.h' to get target_ulong definitioninclude/exec/cpu_ldst.h+1 -00 replies
5/14cpu: Add missing 'exec/exec-all.h' and 'qemu/accel.h' headerscpu.c+2 -00 replies
6/14target/i386/cpu: Ensure accelerators set CPU addressble physical bitstarget/i386/cpu.c+1 -00 replies
7/14target/i386/tcg/sysemu: Include missing 'exec/exec-all.h' headertarget/i386/tcg/sysemu/excp_helper.c target/i386/tcg/sysemu/misc_helper.c+2 -00 replies
8/14Hexagon (target/hexagon) convert to OBJECT_DECLARE_TYPEtarget/hexagon/cpu.h+3 -70 replies
9/14target: Include missing 'cpu.h'target/microblaze/mmu.h target/mips/internal.h target/nios2/mmu.h +1 more+7 -00 replies
10/14target/hexagon: Add missing 'hw/core/cpu.h' includetarget/hexagon/cpu.h+1 -02 replies
11/14target: Use forward declared type instead of structure typetarget/arm/hvf_arm.h target/mips/internal.h target/openrisc/cpu.h +1 more+11 -110 replies
12/14target: Use CPUArchState as interface to target-specific CPU stateinclude/exec/poison.h include/hw/core/cpu.h include/qemu/typedefs.h +23 more+37 -700 replies
13/14target: Introduce and use OBJECT_DECLARE_CPU_TYPE() macroinclude/hw/core/cpu.h target/alpha/cpu-qom.h target/alpha/cpu.h +34 more+42 -811 reply
14/14target: Use ArchCPU as interface to target CPUinclude/hw/core/cpu.h include/qemu/typedefs.h target/alpha/cpu.h +19 more+23 -221 reply

Reviews trailers per patch

All 14 patches have a Reviewed-by or Acked-by.

PatchRichard HendersonThomas HuthPaolo BonziniPhilippe Mathieu-DaudéDamien Hedde
1/14A-b
2/14R-b R-b
3/14R-b R-b
4/14R-b
5/14R-b
6/14R-b
7/14R-b
8/14R-b R-b
9/14R-b
10/14R-b R-b
11/14R-b
12/14R-b
13/14R-b
14/14R-b

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 [PATCH v2 00/14] target: Use ArchCPU & CPUArchState as abstract interface to target CPU

Missing review: 10, 13, 14

Since v1:
- Include Hexagon OBJECT_DECLARE_TYPE() patch
- Add missing includes to Hexagon
- Introduce OBJECT_DECLARE_CPU_TYPE() macro
- Use OBJECT_DECLARE_CPU_TYPE()

Kind of respin of the "exec: Move translation declarations to 'translate-all.h'" series, but without modifying translate-all.h :) (same same but different).

Based-on: <[email protected]> "exec: Remove 'qemu/log.h' from 'exec-all.h'"

Philippe Mathieu-Daudé (13):
meson: Display libfdt as disabled when system emulation is disabled hw/m68k/mcf: Add missing 'exec/hwaddr.h' header hw/tricore: Remove unused and incorrect header exec/cpu_ldst: Include 'cpu.h' to get target_ulong definition
cpu: Add missing 'exec/exec-all.h' and 'qemu/accel.h' headers target/i386/cpu: Ensure accelerators set CPU addressble physical bits target/i386/tcg/sysemu: Include missing 'exec/exec-all.h' header
target: Include missing 'cpu.h'
target/hexagon: Add missing 'hw/core/cpu.h' include
target: Use forward declared type instead of structure type
target: Use CPUArchState as interface to target-specific CPU state
target: Introduce and use OBJECT_DECLARE_CPU_TYPE() macro
target: Use ArchCPU as interface to target CPU

Taylor Simpson (1):
Hexagon (target/hexagon) convert to OBJECT_DECLARE_TYPE

 cpu.c                                |  2 ++
 include/exec/cpu_ldst.h              |  1 +
 include/exec/poison.h                |  2 --
 include/hw/core/cpu.h                | 20 +++++++++++++++++++-
 include/hw/m68k/mcf.h                |  1 +
 include/hw/tricore/triboard.h        |  1 -
 include/qemu/typedefs.h              |  2 ++
 meson.build                          |  4 +++-
 target/alpha/cpu-qom.h               |  3 +--
 target/alpha/cpu.h                   | 11 +++--------
 target/arm/cpu-qom.h                 |  3 +--
 target/arm/cpu.h                     |  7 ++-----
 target/arm/hvf_arm.h                 |  2 +-
 target/avr/cpu-qom.h                 |  3 +--
 target/avr/cpu.h                     | 13 ++++---------
 target/cris/cpu-qom.h                |  3 +--
 target/cris/cpu.h                    |  7 ++-----
 target/hexagon/cpu.h                 | 23 ++++++++---------------
 target/hppa/cpu-qom.h                |  3 +--
 target/hppa/cpu.h                    | 12 +++---------
 target/i386/cpu-qom.h                |  3 +--
 target/i386/cpu.c                    |  1 +
 target/i386/cpu.h                    |  7 ++-----
 target/i386/tcg/sysemu/excp_helper.c |  1 +
 target/i386/tcg/sysemu/misc_helper.c |  1 +
 target/m68k/cpu-qom.h                |  3 +--
 target/m68k/cpu.h                    |  7 ++-----
 target/microblaze/cpu-qom.h          |  3 +--
 target/microblaze/cpu.h              |  9 +++------
 target/microblaze/mmu.h              |  2 ++
 target/mips/cpu-qom.h                |  3 +--
 target/mips/cpu.h                    | 10 +++-------
 target/mips/internal.h               | 15 ++++++++-------
 target/nios2/cpu.h                   |  9 ++++-----
 target/nios2/mmu.h                   |  2 ++
 target/openrisc/cpu.h                | 17 +++++------------
 target/ppc/cpu-qom.h                 |  5 ++---
 target/ppc/cpu.h                     |  7 ++-----
 target/riscv/cpu.h                   | 11 ++++-------
 target/riscv/pmp.h                   |  2 ++
 target/rx/cpu-qom.h                  |  5 +----
 target/rx/cpu.h                      |  6 ++----
 target/s390x/cpu-qom.h               |  7 +++----
 target/s390x/cpu.h                   |  7 ++-----
 target/sh4/cpu-qom.h                 |  3 +--
 target/sh4/cpu.h                     |  7 ++-----
 target/sparc/cpu-qom.h               |  3 +--
 target/sparc/cpu.h                   |  9 +++------
 target/tricore/cpu-qom.h             |  3 +--
 target/tricore/cpu.h                 | 10 +++-------
 target/xtensa/cpu-qom.h              |  3 +--
 target/xtensa/cpu.h                  | 13 +++++--------
 52 files changed, 129 insertions(+), 188 deletions(-)
Signature · 1 line
2.34.1