qemu-e2k/target/ppc
Thomas Huth 715d4b96a4 ppc/kvm: Handle the "family" CPU via alias instead of registering new types
When running with KVM on POWER, we are registering a "family" CPU
type for the host CPU that we are running on. For example, on all
POWER8-compatible hosts, we register a "POWER8" CPU type, so that
you can always start QEMU with "-cpu POWER8" there, without the
need to know whether you are running on a POWER8, POWER8E or POWER8NVL
host machine.
However, we also have a "POWER8" CPU alias in the ppc_cpu_aliases list
(that is mainly useful for TCG). This leads to two cosmetical drawbacks:
If the user runs QEMU with "-cpu ?", we always claim that POWER8 is an
"alias for POWER8_v2.0" - which is simply not true when running with
KVM on POWER. And when using the 'query-cpu-definitions' QMP call,
there are currently two entries for "POWER8", one for the alias, and
one for the additional registered type.
To solve the two problems, we should rather update the "family" alias
instead of registering a new types. We then only have one "POWER8"
CPU definition around, an alias, which also points to the right
destination.

Buglink: https://bugzilla.redhat.com/show_bug.cgi?id=1396536
Signed-off-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
2017-02-02 09:30:07 +11:00
..
translate target-ppc: Add xststdc[sp, dp, qp] instructions 2017-02-02 09:30:06 +11:00
arch_dump.c
compat.c ppc: Add ppc_set_compat_all() 2017-01-31 10:10:14 +11:00
cpu-models.c target/ppc/cpu-models: Fix/remove bad CPU aliases 2017-01-31 13:46:26 +11:00
cpu-models.h powerpc/cpu-models: rename ISAv3.00 logical PVR definition 2017-01-31 10:10:14 +11:00
cpu-qom.h spapr: clock should count only if vm is running 2017-01-31 10:10:14 +11:00
cpu.h target/ppc: Add pcr_supported to POWER9 cpu class definition 2017-01-31 10:10:14 +11:00
dfp_helper.c
excp_helper.c ppc: Clean up and QOMify hypercall emulation 2017-01-31 10:10:13 +11:00
fpu_helper.c target-ppc: Add xststdc[sp, dp, qp] instructions 2017-02-02 09:30:06 +11:00
gdbstub.c
helper_regs.h cputlb: drop flush_global flag from tlb_flush 2017-01-13 14:24:37 +00:00
helper.h target-ppc: Add xststdc[sp, dp, qp] instructions 2017-02-02 09:30:06 +11:00
int_helper.c ppc: Implement bcdutrunc. instruction 2017-01-31 10:10:14 +11:00
internal.h target-ppc: Add xststdc[sp, dp, qp] instructions 2017-02-02 09:30:06 +11:00
kvm_ppc.h ppc: Rename cpu_version to compat_pvr 2017-01-31 10:10:13 +11:00
kvm-stub.c
kvm.c ppc/kvm: Handle the "family" CPU via alias instead of registering new types 2017-02-02 09:30:07 +11:00
machine.c migration: extend VMStateInfo 2017-01-24 17:54:47 +00:00
Makefile.objs ppc: Rewrite ppc_set_compat() 2017-01-31 10:10:13 +11:00
mem_helper.c target-ppc: implement stxvll instructions 2017-01-31 10:10:13 +11:00
mfrom_table_gen.c
mfrom_table.c
misc_helper.c cputlb: drop flush_global flag from tlb_flush 2017-01-13 14:24:37 +00:00
mmu_helper.c cputlb: drop flush_global flag from tlb_flush 2017-01-13 14:24:37 +00:00
mmu-hash32.c
mmu-hash32.h
mmu-hash64.c target/ppc/mmu_hash64: Fix printing unsigned as signed int 2017-02-02 09:30:07 +11:00
mmu-hash64.h target/ppc/mmu_hash64: Fix incorrect shift value in amr calculation 2017-02-02 09:30:07 +11:00
monitor.c
STATUS
timebase_helper.c
trace-events
translate_init.c target/ppc: Remove unused POWERPC_FAMILY(POWER) 2017-01-31 13:46:26 +11:00
translate.c tcg/POWER9: NOOP the cp_abort instruction 2017-02-02 09:30:06 +11:00
user_only_helper.c