diff options
author | Thomas Huth | 2016-09-28 13:16:29 +0200 |
---|---|---|
committer | David Gibson | 2016-10-13 03:58:06 +0200 |
commit | 45a4f18e2ec40b96893c780c28ab18c246906355 (patch) | |
tree | b36e20528aa9be9d951fef601137102a2191ca70 /qemu-char.c | |
parent | hw/ppc/spapr: Move code related to "ibm,pa-features" to a separate function (diff) | |
download | qemu-45a4f18e2ec40b96893c780c28ab18c246906355.tar.gz qemu-45a4f18e2ec40b96893c780c28ab18c246906355.tar.xz qemu-45a4f18e2ec40b96893c780c28ab18c246906355.zip |
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>
(cherry picked from commit 4cbec30d769a73853b60dc7f275e6e7da9ab5162)
Diffstat (limited to 'qemu-char.c')
0 files changed, 0 insertions, 0 deletions