The only reason cpudef_init() still exists is the qemu_hw_version()-based model_id hack at x86_cpudef_setup().
Move the model_id hack to machine compat_props so we can make the model_id field constant at the CPU model table, and then remove cpudef_init() completely. Eduardo Habkost (4): osdep: Move default qemu_hw_version() value to a macro pc: Set CPU model-id on compat_props for pc <= 2.4 target-i386: Set constant model_id for qemu63/qemu32/athlon cpu: Eliminate cpudef_init(), cpudef_setup() arch_init.c | 7 ------- bsd-user/main.c | 3 --- hw/i386/pc_piix.c | 12 +++++++++++- include/hw/i386/pc.h | 29 +++++++++++++++++++++++++++++ include/qemu/osdep.h | 9 +++++++++ include/sysemu/arch_init.h | 1 - linux-user/main.c | 3 --- target-i386/cpu.c | 27 +++------------------------ target-i386/cpu.h | 2 -- util/osdep.c | 9 +-------- vl.c | 7 ------- 11 files changed, 53 insertions(+), 56 deletions(-) -- 2.1.0