Skip to content

cpu: Make cpu_init() return QOM object

Eduardo Habkost qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4target-unicore32: Make uc32_cpu_init() return UniCore32CPUtarget-unicore32/cpu.h target-unicore32/helper.c+14 -100 replies
2/4m68k: Use cpu_m68k_init()hw/m68k/dummy_m68k.c+4 -20 replies
3/4unicore32: Use uc32_cpu_init()hw/unicore32/puv3.c+4 -20 replies
4/4cpu: Make cpu_init() return QOM objectbsd-user/main.c linux-user/main.c target-alpha/cpu.h +16 more+23 -1373 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 0/4] cpu: Make cpu_init() return QOM object

This series changes cpu_init() to return a CPU QOM object, and changes existing arch-specific code to use the corresponding arch-specific function instead of cpu_init().

With this, the only remaining users of cpu_init() are linux-user and bsd-user.

Eduardo Habkost (4):
target-unicore32: Make uc32_cpu_init() return UniCore32CPU
m68k: Use cpu_m68k_init()
unicore32: Use uc32_cpu_init()
cpu: Make cpu_init() return QOM object

 bsd-user/main.c           |  6 +++---
 hw/m68k/dummy_m68k.c      |  6 ++++--
 hw/unicore32/puv3.c       |  6 ++++--
 linux-user/main.c         |  6 +++---
 target-alpha/cpu.h        |  9 +--------
 target-arm/cpu.h          |  9 +--------
 target-cris/cpu.h         |  9 +--------
 target-i386/cpu.h         |  9 +--------
 target-lm32/cpu.h         |  9 +--------
 target-m68k/cpu.h         |  9 +--------
 target-microblaze/cpu.h   |  9 +--------
 target-mips/cpu.h         |  9 +--------
 target-moxie/cpu.h        |  9 +--------
 target-openrisc/cpu.h     |  9 +--------
 target-ppc/cpu.h          |  9 +--------
 target-s390x/cpu.h        |  2 +-
 target-sh4/cpu.h          |  9 +--------
 target-sparc/cpu.h        |  9 +--------
 target-tricore/cpu.h      | 10 +---------
 target-unicore32/cpu.h    |  6 ++++--
 target-unicore32/helper.c | 10 ++--------
 target-xtensa/cpu.h       |  9 +--------
 22 files changed, 36 insertions(+), 142 deletions(-)
Signature · 1 line
2.1.0