[PATCH 00/11] cpus: Prefer cached CpuClass over CPU_GET_CLASS() macro

Philippe Mathieu-Daudé posted 11 patches 1 day, 12 hours ago
There is a newer version of this series
include/hw/core/cpu.h          | 10 ++-----
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    |  3 +-
target/openrisc/gdbstub.c      |  3 +-
24 files changed, 76 insertions(+), 135 deletions(-)
[PATCH 00/11] cpus: Prefer cached CpuClass over CPU_GET_CLASS() macro
Posted by Philippe Mathieu-Daudé 1 day, 12 hours ago
Use cached CPUState::cc to get CPUClass.
Main rationale is overall code style.

Philippe Mathieu-Daudé (11):
  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
  hw/core/generic-loader: Prefer cached CpuClass over CPU_GET_CLASS
    macro
  target/arm: Prefer cached CpuClass over CPU_GET_CLASS() macro
  target/microblaze: Prefer cached CpuClass over CPU_GET_CLASS() macro
  target/openrisc: Prefer cached CpuClass over CPU_GET_CLASS() macro

 include/hw/core/cpu.h          | 10 ++-----
 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    |  3 +-
 target/openrisc/gdbstub.c      |  3 +-
 24 files changed, 76 insertions(+), 135 deletions(-)

-- 
2.47.1