xemu/target-ppc
Andreas Färber 2985b86b5c target-ppc: Slim conversion of model definitions to QOM subclasses
Since the model list is highly macrofied, keep ppc_def_t for now and
save a pointer to it in PowerPCCPUClass. This results in a flat list of
subclasses including aliases, to be refined later.

Move cpu_ppc_init() to translate_init.c and drop helper.c.
Long-term the idea is to turn translate_init.c into a standalone cpu.c.

Inline cpu_ppc_usable() into type registration.

Split cpu_ppc_register() in two by code movement into the initfn and
by turning the remaining part into a realizefn.
Move qemu_init_vcpu() call into the new realizefn and adapt
create_ppc_opcodes() to return an Error.

Change ppc_find_by_pvr() -> ppc_cpu_class_by_pvr().
Change ppc_find_by_name() -> ppc_cpu_class_by_name().

Turn -cpu host into its own subclass. This requires to move the
kvm_enabled() check in ppc_cpu_class_by_name() to avoid the class being
found via the normal name lookup in the !kvm_enabled() case.
Turn kvmppc_host_cpu_def() into the class_init and add an initfn that
asserts KVM is in fact enabled.

Implement -cpu ? and the QMP equivalent in terms of subclasses.
This newly exposes -cpu host to the user, ordered last for -cpu ?.

Signed-off-by: Andreas Färber <afaerber@suse.de>
Signed-off-by: Alexander Graf <agraf@suse.de>
2013-01-07 17:37:11 +01:00
..
cpu-qom.h target-ppc: Slim conversion of model definitions to QOM subclasses 2013-01-07 17:37:11 +01:00
cpu.h target-ppc: Slim conversion of model definitions to QOM subclasses 2013-01-07 17:37:11 +01:00
excp_helper.c PPC: Bring EPR support closer to reality 2013-01-07 17:37:11 +01:00
fpu_helper.c ppc: Add missing break 2012-06-24 01:04:43 +02:00
helper_regs.h Replace always_inline with inline 2009-08-16 09:06:54 +00:00
helper.h PPC: Bring EPR support closer to reality 2013-01-07 17:37:11 +01:00
int_helper.c misc: move include files to include/qemu/ 2012-12-19 08:32:39 +01:00
kvm_ppc.c softmmu: move include files to include/sysemu/ 2012-12-19 08:32:45 +01:00
kvm_ppc.h target-ppc: Slim conversion of model definitions to QOM subclasses 2013-01-07 17:37:11 +01:00
kvm.c target-ppc: Slim conversion of model definitions to QOM subclasses 2013-01-07 17:37:11 +01:00
machine.c softmmu: move include files to include/sysemu/ 2012-12-19 08:32:45 +01:00
Makefile.objs target-ppc: Slim conversion of model definitions to QOM subclasses 2013-01-07 17:37:11 +01:00
mem_helper.c misc: move include files to include/qemu/ 2012-12-19 08:32:39 +01:00
mfrom_table_gen.c fix spelling in target sub directory 2011-12-02 10:50:57 +00:00
mfrom_table.c find -type f | xargs sed -i 's/[\t ]$//g' # on most files 2007-09-16 21:08:06 +00:00
misc_helper.c ppc: Move misc helpers from helper.c to misc_helper.c 2012-06-24 01:04:43 +02:00
mmu_helper.c softmmu: move include files to include/sysemu/ 2012-12-19 08:32:45 +01:00
STATUS Fix typos in comments (chek -> check) 2011-05-22 22:31:45 +01:00
timebase_helper.c ppc: Avoid AREG0 for timebase helpers 2012-06-24 01:04:43 +02:00
translate_init.c target-ppc: Slim conversion of model definitions to QOM subclasses 2013-01-07 17:37:11 +01:00
translate.c misc: move include files to include/qemu/ 2012-12-19 08:32:39 +01:00