mbox series

[0/6] host/i386: allow configuring the x86-64 baseline

Message ID 20240620130254.415699-1-pbonzini@redhat.com (mailing list archive)
Headers show
Series host/i386: allow configuring the x86-64 baseline | expand

Message

Paolo Bonzini June 20, 2024, 1:02 p.m. UTC
As discussed, add a Meson option to configure which x86-64 instruction
set to use.  QEMU will now default to x86-64-v1 + cmpxchg16b for
64-bit builds (that corresponds to a Pentium 4 for 32-bit builds).

The baseline can be tuned down to Pentium Pro for 32-bit builds (with
-Dx86_version=0), or up as desired.

Patch "host/i386: assume presence of CMOV" is not reverted because
CMOV appeared first in the Pentium Pro.

Paolo

Paolo Bonzini (6):
  Revert "host/i386: assume presence of POPCNT"
  Revert "host/i386: assume presence of SSSE3"
  Revert "host/i386: assume presence of SSE2"
  meson: allow configuring the x86-64 baseline
  meson: remove dead optimization option
  meson: require compiler support for chosen x86-64 instructions

 meson.build                      | 56 ++++++++++++++++++++------------
 host/include/i386/host/cpuinfo.h |  2 ++
 tcg/i386/tcg-target.h            |  5 +--
 util/bufferiszero.c              |  4 +--
 util/cpuinfo-i386.c              |  6 ++--
 meson_options.txt                |  5 +--
 scripts/meson-buildoptions.sh    |  3 ++
 7 files changed, 52 insertions(+), 29 deletions(-)