mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
meson: allow configuring the x86-64 baseline
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. Acked-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
87b8bde55d
commit
ef7d1adfa8
3 changed files with 39 additions and 8 deletions
|
@ -82,6 +82,8 @@ meson_options_help() {
|
|||
printf "%s\n" ' --with-suffix=VALUE Suffix for QEMU data/modules/config directories'
|
||||
printf "%s\n" ' (can be empty) [qemu]'
|
||||
printf "%s\n" ' --with-trace-file=VALUE Trace file prefix for simple backend [trace]'
|
||||
printf "%s\n" ' --x86-version=CHOICE tweak required x86_64 architecture version beyond'
|
||||
printf "%s\n" ' compiler default [1] (choices: 0/1/2/3)'
|
||||
printf "%s\n" ''
|
||||
printf "%s\n" 'Optional features, enabled with --enable-FEATURE and'
|
||||
printf "%s\n" 'disabled with --disable-FEATURE, default is enabled if available'
|
||||
|
@ -552,6 +554,7 @@ _meson_option_parse() {
|
|||
--disable-werror) printf "%s" -Dwerror=false ;;
|
||||
--enable-whpx) printf "%s" -Dwhpx=enabled ;;
|
||||
--disable-whpx) printf "%s" -Dwhpx=disabled ;;
|
||||
--x86-version=*) quote_sh "-Dx86_version=$2" ;;
|
||||
--enable-xen) printf "%s" -Dxen=enabled ;;
|
||||
--disable-xen) printf "%s" -Dxen=disabled ;;
|
||||
--enable-xen-pci-passthrough) printf "%s" -Dxen_pci_passthrough=enabled ;;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue