Hello, This series follows up on my PowerPC QOM'ification patches from the qom-cpu-others.v1 RFC series and splits it into steps easier to review. The finalizer is actually filled with life now. Subclasses are postponed.
David and Scott, please review and test. Available from: git://github.com/afaerber/qemu-cpu.git qom-cpu-ppc.v2 https://github.com/afaerber/qemu-cpu/commits/qom-cpu-ppc.v2 Regards, Andreas Cc: qemu-ppc <qemu-...@nongnu.org> Cc: David Gibson <da...@gibson.dropbear.id.au> Cc: Scott Wood <scottw...@freescale.com> v1 -> v2: * Split off from qom-cpu-others series. * Update argument/variable naming to avoid "klass" and to use ..._type_info. * Drop subclasses for now, leaving TYPE_POWERPC_CPU non-abstract. * Rename TYPE_POWERPC_CPU to "powerpc64-cpu" for TARGET_PPC64 and to "embedded-powerpc-cpu" for TARGET_PPCEMB, based on a suggestion by Blue. * Implement finalizer. Andreas Färber (5): target-ppc: Drop cpu_ppc_close() target-ppc: QOM'ify CPU target-ppc: QOM'ify CPU init target-ppc: QOM'ify CPU reset target-ppc: Add CPU finalizer target-ppc/cpu-qom.h | 77 +++++++++++++++++++++++++++++ target-ppc/cpu.h | 3 +- target-ppc/helper.c | 65 ++---------------------- target-ppc/translate.c | 2 +- target-ppc/translate_init.c | 115 +++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 200 insertions(+), 62 deletions(-) create mode 100644 target-ppc/cpu-qom.h -- 1.7.7