Skip to content

cpus: Prefer cached CpuClass over CPU_GET_CLASS() macro

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

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest10 patches 5 repliesIn review
  2. v111 patches 11 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10hw/core/generic-loader: Do not open-code cpu_set_pc()hw/core/generic-loader.c+1 -41 reply
2/10gdbstub: Clarify no more than @gdb_num_core_regs can be accessedinclude/hw/core/cpu.h target/microblaze/gdbstub.c target/openrisc/gdbstub.c+2 -102 replies
3/10cpus: Cache CPUClass early in instance_init() handlercpu-target.c hw/core/cpu-common.c+3 -30 replies
4/10cpus: Prefer cached CpuClass over CPU_GET_CLASS() macrocpu-common.c cpu-target.c hw/core/cpu-common.c +2 more+32 -620 replies
5/10accel: Prefer cached CpuClass over CPU_GET_CLASS() macroaccel/accel-target.c accel/tcg/tcg-accel-ops.c accel/tcg/translate-all.c +1 more+11 -150 replies
6/10user: Prefer cached CpuClass over CPU_GET_CLASS() macrobsd-user/signal.c linux-user/alpha/target_proc.h linux-user/signal.c+5 -50 replies
7/10disas: Prefer cached CpuClass over CPU_GET_CLASS() macrodisas/disas-common.c+2 -30 replies
8/10gdbstub: Prefer cached CpuClass over CPU_GET_CLASS() macrogdbstub/gdbstub.c gdbstub/system.c gdbstub/user-target.c +1 more+15 -311 reply
9/10hw/acpi: Prefer cached CpuClass over CPU_GET_CLASS() macrohw/acpi/cpu.c hw/acpi/cpu_hotplug.c+3 -40 replies
10/10target/arm: Prefer cached CpuClass over CPU_GET_CLASS() macrotarget/arm/cpu.c target/arm/tcg/cpu-v7m.c+2 -40 replies

Reviews trailers per patch

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

PatchRichard HendersonAlex Bennée
1/10R-b
2/10R-b
3/10R-b
4/10R-b
5/10R-b
6/10R-b
7/10R-b
8/10R-b A-b
9/10R-b
10/10R-b

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

Read the v2 thread

Cover letter [PATCH v2 00/10] cpus: Prefer cached CpuClass over CPU_GET_CLASS() macro

Missing review: 1 & 2

v1 cover:
Use cached CPUState::cc to get CPUClass.
Main rationale is overall code style.

Philippe Mathieu-Daudé (10):
hw/core/generic-loader: Do not open-code cpu_set_pc()
gdbstub: Clarify no more than @gdb_num_core_regs can be accessed
cpus: Cache CPUClass early in instance_init() handler
cpus: Prefer cached CpuClass over CPU_GET_CLASS() macro
accel: Prefer cached CpuClass over CPU_GET_CLASS() macro
user: Prefer cached CpuClass over CPU_GET_CLASS() macro
disas: Prefer cached CpuClass over CPU_GET_CLASS() macro
gdbstub: Prefer cached CpuClass over CPU_GET_CLASS() macro hw/acpi: Prefer cached CpuClass over CPU_GET_CLASS() macro target/arm: Prefer cached CpuClass over CPU_GET_CLASS() macro

 include/hw/core/cpu.h          | 12 ++++----
 linux-user/alpha/target_proc.h |  2 +-
 accel/accel-target.c           | 12 ++++----
 accel/tcg/tcg-accel-ops.c      |  3 +-
 accel/tcg/translate-all.c      |  2 +-
 accel/tcg/watchpoint.c         |  9 +++---
 bsd-user/signal.c              |  4 +--
 cpu-common.c                   | 10 +++----
 cpu-target.c                   |  9 ++----
 disas/disas-common.c           |  5 ++--
 gdbstub/gdbstub.c              | 26 ++++++----------
 gdbstub/system.c               |  7 ++---
 gdbstub/user-target.c          |  6 ++--
 gdbstub/user.c                 |  7 ++---
 hw/acpi/cpu.c                  |  4 +--
 hw/acpi/cpu_hotplug.c          |  3 +-
 hw/core/cpu-common.c           | 16 +++++-----
 hw/core/cpu-system.c           | 55 ++++++++++++----------------------
 hw/core/generic-loader.c       |  5 +---
 linux-user/signal.c            |  4 +--
 target/arm/cpu.c               |  3 +-
 target/arm/tcg/cpu-v7m.c       |  3 +-
 target/microblaze/gdbstub.c    |  5 ----
 target/openrisc/gdbstub.c      |  5 ----
 24 files changed, 76 insertions(+), 141 deletions(-)
Signature · 1 line
2.47.1