his is a new version of the previous CPU model classes RFC I have sent previously, rebased on top of Igor's CPU properties series, and other series from the list.
Igor's series: http://article.gmane.org/gmane.comp.emulators.qemu/165728 Considering that I had rebased Igor's series on top of other code, it's probably easier to look directly at my git tree: https://github.com/ehabkost/qemu-hacks/tree/work/cpu-model-classes-v1.10-2012-08-16 The following series were applied before this one, in this order: - -cpu help fixes from Peter Maydell (branch from-list/cpu-help-peter-2012-08-10) - CPU DeviceState series from Anthony (branch from-list/cpu-qdev-anthony-2012-08-10) - My "move CPU models to C" series (branch work/move-cpu-models-to-C-v1.4-2012-08-15) - Igor's CPU properties series (branch work/cpu-properties-igor-rebase-v3.2-2012-08-15) Eduardo Habkost (13): target-i386/cpu.c: coding style fixes x86_cpudef_setup: coding style change i386: x86_def_t: rename 'flags' field move CPU x86 object creation to cpu.c rename x86_def_t to X86CPUDefinition move X86CPUDefinition to cpu-qom.h cpu_x86_create: move error handling to end of function cpu_x86_register: always initialize 'name' and 'features' kill cpu_x86_register() cpu_x86_create: reorder parsing of CPU model string and creation of CPU object check for NULL cpu_model outside cpu_x86_find_by_name register a class for each CPU model (v2) HACK to initialize types later hw/pc.c | 2 +- hw/xen_machine_pv.c | 2 +- target-i386/cpu-qom.h | 21 ++++ target-i386/cpu.c | 340 ++++++++++++++++++++++++++++++++------------------ target-i386/cpu.h | 5 +- target-i386/helper.c | 24 ---- 6 files changed, 243 insertions(+), 151 deletions(-) -- 1.7.11.2