]> git.proxmox.com Git - mirror_qemu.git/commit
i386: Don't print warning if phys-bits was set automatically
authorEduardo Habkost <ehabkost@redhat.com>
Tue, 11 Jun 2019 20:54:20 +0000 (17:54 -0300)
committerEduardo Habkost <ehabkost@redhat.com>
Fri, 5 Jul 2019 20:08:03 +0000 (17:08 -0300)
commitfea306520ea4b2f189dd23c70a6afd2fc4ffafdc
treec4309af52e77e27d22f57fb481a8297e0ff2ee9e
parentcb79224b7e4b3d981c4080e60f20557739681000
i386: Don't print warning if phys-bits was set automatically

If cpu->host_phys_bits_limit is set, QEMU will make
cpu->phys_bits be lower than host_phys_bits on some cases.  This
triggers a warning that was supposed to be printed only if
phys-bits was explicitly set in the command-line.

Reorder the code so the value of cpu->phys_bits is validated
before the cpu->host_phys_bits handling.  This will avoid
unexpected warnings when cpu->host_phys_bits_limit is set.

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Message-Id: <20190611205420.20286-1-ehabkost@redhat.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
target/i386/cpu.c