Skip to content

hw/cpu: Slightly sanitize CPU API

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

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8hw/cpu: Correct CPU_GET_CLASS() commentinclude/hw/core/cpu.h+1 -10 replies
2/8hw/cpu: Include missing 'qemu/accel.h' headerhw/core/cpu-common.c+1 -00 replies
3/8hw/cpu: Move internal declarations to new 'cpu-internal.h' headerhw/core/cpu-common.c hw/core/cpu-internal.h hw/core/cpu-system.c +2 more+28 -90 replies
4/8hw/cpu: Rename cpu_common_realizefn() -> cpu_exec_realize()hw/core/cpu-common.c target/i386/kvm/kvm-cpu.c+3 -30 replies
5/8hw/cpu: Rename cpu_exec_realizefn() -> cpu_common_realize()hw/core/cpu-common.c include/hw/core/cpu.h target/alpha/cpu.c +21 more+29 -280 replies
6/8hw/cpu: Rename cpu_exec_unrealizefn() -> cpu_common_unrealize()hw/core/cpu-common.c include/hw/core/cpu.h target/ppc/cpu_init.c+6 -40 replies
7/8hw/cpu: Extract cpu_exec_realize() out of cpu_common_realizefn()hw/core/cpu-common.c+8 -40 replies
8/8hw/cpu: Move system-specific cpu_exec_realize() to cpu-system.chw/core/cpu-common.c hw/core/cpu-internal.h hw/core/cpu-system.c +1 more+32 -240 replies

Reviews trailers per patch

None of the 8 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchRichard Henderson
SeriesR-b
1/8
2/8
3/8
4/8
5/8
6/8
7/8
8/8

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/8] hw/cpu: Slightly sanitize CPU API

API cleanups, mostly removing system-specific code out of cpu-common.c. Code churn renaming functions, in the hope to make things a bit simpler to understand.

Small patch set extracted from a series clarifying CPU / accel synchronization, itself a preliminary work to introduce split acceleration, eventually.

Philippe Mathieu-Daudé (8):
hw/cpu: Correct CPU_GET_CLASS() comment
hw/cpu: Include missing 'qemu/accel.h' header
hw/cpu: Move internal declarations to new 'cpu-internal.h' header hw/cpu: Rename cpu_common_realizefn() -> cpu_exec_realize() hw/cpu: Rename cpu_exec_realizefn() -> cpu_common_realize() hw/cpu: Rename cpu_exec_unrealizefn() -> cpu_common_unrealize() hw/cpu: Extract cpu_exec_realize() out of cpu_common_realizefn() hw/cpu: Move system-specific cpu_exec_realize() to cpu-system.c

 hw/core/cpu-internal.h     | 23 +++++++++++++++++++++++
 include/hw/core/cpu.h      | 15 ++++++---------
 hw/core/cpu-common.c       | 32 +++++++-------------------------
 hw/core/cpu-system.c       | 29 ++++++++++++++++++++++++++++-
 hw/core/cpu-user.c         |  8 +++++++-
 target/alpha/cpu.c         |  2 +-
 target/arm/cpu.c           |  2 +-
 target/avr/cpu.c           |  2 +-
 target/hexagon/cpu.c       |  2 +-
 target/hppa/cpu.c          |  2 +-
 target/i386/cpu.c          | 10 +++++-----
 target/i386/kvm/kvm-cpu.c  |  4 ++--
 target/loongarch/cpu.c     |  2 +-
 target/m68k/cpu.c          |  2 +-
 target/microblaze/cpu.c    |  2 +-
 target/mips/cpu.c          |  2 +-
 target/or1k/cpu.c          |  2 +-
 target/ppc/cpu_init.c      |  4 ++--
 target/riscv/cpu.c         |  2 +-
 target/riscv/kvm/kvm-cpu.c |  2 +-
 target/riscv/tcg/tcg-cpu.c |  2 +-
 target/rx/cpu.c            |  2 +-
 target/s390x/cpu.c         |  2 +-
 target/sh4/cpu.c           |  2 +-
 target/sparc/cpu.c         |  2 +-
 target/tricore/cpu.c       |  2 +-
 target/xtensa/cpu.c        |  2 +-
 27 files changed, 99 insertions(+), 64 deletions(-)
 create mode 100644 hw/core/cpu-internal.h
Signature · 1 line
2.53.0