diff options
| author | Naveen Saini <naveen.kumar.saini@intel.com> | 2022-12-29 09:42:18 +0800 |
|---|---|---|
| committer | Anuj Mittal <anuj.mittal@intel.com> | 2022-12-29 09:27:07 +0800 |
| commit | 7f8e1c53752210261627a29e8877579df06bdece (patch) | |
| tree | dfb8463e5b7875338a8edaec1a77889e9153df1f /conf/machine/include | |
| parent | 66d1397bfa68aaec07c363f6843316720563bb7f (diff) | |
| download | meta-intel-7f8e1c53752210261627a29e8877579df06bdece.tar.gz | |
tune-skylake.inc: remove qemu-usermode check
QEMU 7.2.0 has now support for avx2 with followign change:
x86: TCG support for AVX, AVX2, F16C, FMA3 and VAES instructions
Ref https://git.yoctoproject.org/poky/commit/?id=9caff14abbb742e5083056b899ee6fc0a5fba8f3
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Diffstat (limited to 'conf/machine/include')
| -rw-r--r-- | conf/machine/include/tune-skylake.inc | 26 |
1 files changed, 1 insertions, 25 deletions
diff --git a/conf/machine/include/tune-skylake.inc b/conf/machine/include/tune-skylake.inc index 05b7283c..b6e5527f 100644 --- a/conf/machine/include/tune-skylake.inc +++ b/conf/machine/include/tune-skylake.inc | |||
| @@ -12,7 +12,7 @@ require conf/machine/include/x86/tune-corei7.inc | |||
| 12 | 12 | ||
| 13 | # Extra tune features | 13 | # Extra tune features |
| 14 | TUNEVALID[skylake] = "Enable skylake specific processor optimizations" | 14 | TUNEVALID[skylake] = "Enable skylake specific processor optimizations" |
| 15 | TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'skylake', ' -march=skylake ${SKYLAKE_TUNE} -mfpmath=sse', '', d)}" | 15 | TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'skylake', ' -march=skylake -mtune=generic -mavx2 -mfpmath=sse', '', d)}" |
| 16 | 16 | ||
| 17 | # Extra tune selections | 17 | # Extra tune selections |
| 18 | 18 | ||
| @@ -22,27 +22,3 @@ BASE_LIB:tune-skylake-64 = "lib64" | |||
| 22 | TUNE_PKGARCH:tune-skylake-64 = "skylake-64" | 22 | TUNE_PKGARCH:tune-skylake-64 = "skylake-64" |
| 23 | PACKAGE_EXTRA_ARCHS:tune-skylake-64 = "${PACKAGE_EXTRA_ARCHS:tune-core2-64} skylake-64" | 23 | PACKAGE_EXTRA_ARCHS:tune-skylake-64 = "${PACKAGE_EXTRA_ARCHS:tune-core2-64} skylake-64" |
| 24 | QEMU_EXTRAOPTIONS_skylake-64 = " -cpu Skylake-Client" | 24 | QEMU_EXTRAOPTIONS_skylake-64 = " -cpu Skylake-Client" |
| 25 | |||
| 26 | |||
| 27 | # Disable QEMU usermode by default (get avx2) | ||
| 28 | MACHINE_FEATURES:remove = "qemu-usermode" | ||
| 29 | |||
| 30 | # If qemu-usermode is enabled, we have to disable avx2 ISA extensions, but we can keep mtune as skylake vs generic | ||
| 31 | SKYLAKE_TUNE .= "${@bb.utils.contains('MACHINE_FEATURES', 'qemu-usermode', ' -mtune=skylake ${QEMU_UNAVAILABLE_ISA}', '-mtune=generic -mavx2', d)}" | ||
| 32 | |||
| 33 | QEMU_UNAVAILABLE_ISA = " \ | ||
| 34 | -mno-avx \ | ||
| 35 | -mno-avx2 \ | ||
| 36 | -mno-avx512f \ | ||
| 37 | -mno-avx512er \ | ||
| 38 | -mno-avx512cd \ | ||
| 39 | -mno-avx512pf \ | ||
| 40 | -mno-avx512dq \ | ||
| 41 | -mno-avx512bw \ | ||
| 42 | -mno-avx512vl \ | ||
| 43 | -mno-avx512ifma \ | ||
| 44 | -mno-avx512vbmi \ | ||
| 45 | -mno-avx512vbmi2 \ | ||
| 46 | -mno-avx512vnni \ | ||
| 47 | -mno-avx512bitalg \ | ||
| 48 | " | ||
