aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorXiaoyao Li <xiaoyao.li@intel.com>2024-09-29 04:57:47 -0400
committerPaolo Bonzini <pbonzini@redhat.com>2024-10-31 18:28:32 +0100
commit855bdb6c8a60ae20043531dc965fcb1ed171d7d9 (patch)
tree46aab15e0e700881eb804290431b5fd9b17484f6 /include
parent8aade934dfa6ef9a1ca20666078e7c2d19e56368 (diff)
downloadqemu-855bdb6c8a60ae20043531dc965fcb1ed171d7d9.zip
qemu-855bdb6c8a60ae20043531dc965fcb1ed171d7d9.tar.gz
qemu-855bdb6c8a60ae20043531dc965fcb1ed171d7d9.tar.bz2
i386/cpu: Drop the check of phys_bits in host_cpu_realizefn()
The check of cpu->phys_bits to be in range between [32, TARGET_PHYS_ADDR_SPACE_BITS] in host_cpu_realizefn() is duplicated with check in x86_cpu_realizefn(). Since the ckeck in x86_cpu_realizefn() is called later and can cover all the x86 cases. Remove the one in host_cpu_realizefn(). Opportunistically adjust cpu->phys_bits directly in host_cpu_adjust_phys_bits(), which matches more with the function name. Signed-off-by: Xiaoyao Li <xiaoyao.li@intel.com> Reviewed-by: Igor Mammedov <imammedo@redhat.com> Reviewed-by: Zhao Liu <zhao1.liu@intel.com> Link: https://lore.kernel.org/r/20240929085747.2023198-1-xiaoyao.li@intel.com Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions