target-ppc: Fix kvmppc_set_compat to use negotiated cpu-version
commit0b6ff57640a3d51a9738af553a05007a86df332e
authorAlexey Kardashevskiy <aik@ozlabs.ru>
Fri, 5 Sep 2014 07:04:21 +0000 (5 17:04 +1000)
committerAlexander Graf <agraf@suse.de>
Tue, 4 Nov 2014 22:26:10 +0000 (4 23:26 +0100)
tree3d6c437212c1e363bcc5f2e9f373d7414d9ace40
parent8f9fb7ac4915dc12c23f9ebbd65808afb780abff
target-ppc: Fix kvmppc_set_compat to use negotiated cpu-version

By mistake, QEMU uses the maximum compatibility level from the command
line instead of the value negotiated in client-architecture-support call.

This replaces @max_compat with @cpu_version. This only affects guests
which do not support the host CPU.

Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: Alexander Graf <agraf@suse.de>
target-ppc/translate_init.c