mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 16:53:55 -06:00
ppc: Add PowerISA 2.07 compatibility mode
Make sure that guests can use the PowerISA 2.07 CPU sPAPR compatibility mode when they request it and the target CPU supports it. Signed-off-by: Thomas Huth <thuth@redhat.com> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
parent
eac4fba965
commit
b30ff227c2
2 changed files with 7 additions and 2 deletions
|
@ -927,7 +927,7 @@ static void cas_handle_compat_cpu(PowerPCCPUClass *pcc, uint32_t pvr,
|
|||
unsigned *cpu_version)
|
||||
{
|
||||
unsigned lvl = get_compat_level(pvr);
|
||||
bool is205, is206;
|
||||
bool is205, is206, is207;
|
||||
|
||||
if (!lvl) {
|
||||
return;
|
||||
|
@ -939,8 +939,10 @@ static void cas_handle_compat_cpu(PowerPCCPUClass *pcc, uint32_t pvr,
|
|||
is206 = (pcc->pcr_supported & PCR_COMPAT_2_06) &&
|
||||
((lvl == get_compat_level(CPU_POWERPC_LOGICAL_2_06)) ||
|
||||
(lvl == get_compat_level(CPU_POWERPC_LOGICAL_2_06_PLUS)));
|
||||
is207 = (pcc->pcr_supported & PCR_COMPAT_2_07) &&
|
||||
(lvl == get_compat_level(CPU_POWERPC_LOGICAL_2_07));
|
||||
|
||||
if (is205 || is206) {
|
||||
if (is205 || is206 || is207) {
|
||||
if (!max_lvl) {
|
||||
/* User did not set the level, choose the highest */
|
||||
if (*compat_lvl <= lvl) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue