powerpc: add PVR mask support
commit3bc9ccc054574820190f0e6bbfd299bc2d42323d
authorAlexey Kardashevskiy <aik@ozlabs.ru>
Fri, 27 Sep 2013 08:05:03 +0000 (27 18:05 +1000)
committerAlexander Graf <agraf@suse.de>
Fri, 20 Dec 2013 00:57:45 +0000 (20 01:57 +0100)
tree72b355239e9721023bd3deadb802494ab5cc97e8
parentc65f9a07a78afa3c98712f6192962ffd6babe339
powerpc: add PVR mask support

IBM POWERPC processors encode PVR as a CPU family in higher 16 bits and
a CPU version in lower 16 bits. Since there is no significant change
in behavior between versions, there is no point to add every single CPU
version in QEMU's CPU list. Also, new CPU versions of already supported
CPU won't break the existing code.

This adds PVR value/mask support for KVM, i.e. for -cpu host option.

As CPU family class name for POWER7 is "POWER7-family", there is no need
to touch aliases.

Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Reviewed-by: Andreas Färber <afaerber@suse.de>
Signed-off-by: Alexander Graf <agraf@suse.de>
target-ppc/cpu-models.c
target-ppc/cpu-models.h
target-ppc/cpu-qom.h
target-ppc/kvm.c
target-ppc/translate_init.c