qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH qom-cpu for-1.4 00/14] QOM CPU fixes for 1.4


From: Andreas Färber
Subject: [Qemu-devel] [PATCH qom-cpu for-1.4 00/14] QOM CPU fixes for 1.4
Date: Wed, 23 Jan 2013 13:07:33 +0100

Hello,

This series fixes a number of bugs surrounding QOM CPU instantiation.
Please ack.

First, two remaining users of type_register_static() for iterative CPU type
registration are moved over to type_register(). TBD: better commit message

Second, error checking for -cpu some-random-type is added.
This also prepares infrastructure for converting arm, m68k, or32 and uc32
to the new <name>-<arch>-cpu type name scheme in follow-up series.

Third, error checking for -cpu <arch>-cpu and any future abstract sub-types
is added. A new object_class_is_abstract() accessor function is needed.

Note that the ppc target got around this by using object_class_get_list()
rather than object_class_by_name().

The CPU realizefn series will need to be rebased on this one (class_init).

Regards,
Andreas

Cc: Peter Maydell <address@hidden>
Cc: Richard Henderson <address@hidden>
Cc: Jia Liu <address@hidden>
Cc: Guan Xuetao <address@hidden>
Cc: Alexander Graf <address@hidden>
Cc: Anthony Liguori <address@hidden>

Andreas Färber (14):
  target-openrisc: Don't use type_register_static()
  target-unicore32: Don't use type_register_static()
  cpu: Add model resolution support to CPUClass
  target-arm: Detect attempt to instantiate non-CPU type in cpu_init()
  target-alpha: Detect attempt to instantiate non-CPU type in
    cpu_init()
  target-m68k: Detect attempt to instantiate non-CPU type in cpu_init()
  target-openrisc: Detect attempt to instantiate non-CPU type in
    cpu_init()
  target-unicore32: Detect attempt to instantiate non-CPU type in
    cpu_init()
  qom: Introduce object_class_is_abstract()
  target-alpha: Catch attempt to instantiate abstract type in
    cpu_init()
  target-arm: Catch attempt to instantiate abstract type in cpu_init()
  target-m68k: Catch attempt to instantiate abstract type in cpu_init()
  target-openrisc: Catch attempt to instantiate abstract type in
    cpu_init()
  target-unicore32: Catch attempt to instantiate abstract type in
    cpu_init()

 include/qom/cpu.h           |   13 +++++++++++++
 include/qom/object.h        |    8 ++++++++
 qom/cpu.c                   |   13 +++++++++++++
 qom/object.c                |    5 +++++
 target-alpha/cpu.c          |   16 ++++++++++++++--
 target-arm/cpu.c            |   18 ++++++++++++++++++
 target-arm/helper.c         |    6 ++++--
 target-m68k/cpu.c           |   18 ++++++++++++++++++
 target-m68k/helper.c        |    6 ++++--
 target-openrisc/cpu.c       |   27 ++++++++++++++++++++++++---
 target-ppc/translate_init.c |    2 ++
 target-unicore32/cpu.c      |   26 +++++++++++++++++++++++++-
 target-unicore32/helper.c   |    4 +++-
 13 Dateien geändert, 151 Zeilen hinzugefügt(+), 11 Zeilen entfernt(-)

-- 
1.7.10.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]