]> git.proxmox.com Git - mirror_qemu.git/commit
hw/ppc/spapr: Fix the selection of the processor features
authorThomas Huth <thuth@redhat.com>
Wed, 28 Sep 2016 11:16:29 +0000 (13:16 +0200)
committerDavid Gibson <david@gibson.dropbear.id.au>
Wed, 5 Oct 2016 00:05:28 +0000 (11:05 +1100)
commit4cbec30d769a73853b60dc7f275e6e7da9ab5162
tree927e8f1484bff27b8674840a047bd25bf64c8a40
parent230bf719d3a3b144a4ffa441e5d6170ef0ad8999
hw/ppc/spapr: Fix the selection of the processor features

The current code uses pa_features_206 for POWERPC_MMU_2_06, and
for everything else, it uses pa_features_207. This is bad in some
cases because there is also a "degraded" MMU version of ISA 2.06,
called POWERPC_MMU_2_06a, which should of course use the flags for
2.06 instead. And there is also the possibility that the user runs
the pseries machine with a POWER5+ or even 970 processor. In that
case we certainly do not want to set the flags for 2.07, and rather
simply skip the setting of the pa-features property instead.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/ppc/spapr.c