diff options
Diffstat (limited to 'conf')
-rw-r--r-- | conf/machine/include/tune-skylake.inc | 26 |
1 files changed, 23 insertions, 3 deletions
diff --git a/conf/machine/include/tune-skylake.inc b/conf/machine/include/tune-skylake.inc index 78645def..4882600b 100644 --- a/conf/machine/include/tune-skylake.inc +++ b/conf/machine/include/tune-skylake.inc | |||
@@ -8,11 +8,11 @@ | |||
8 | DEFAULTTUNE ?= "skylake-64" | 8 | DEFAULTTUNE ?= "skylake-64" |
9 | 9 | ||
10 | # Include the previous tune to pull in PACKAGE_EXTRA_ARCHS | 10 | # Include the previous tune to pull in PACKAGE_EXTRA_ARCHS |
11 | require conf/machine/include/tune-core2.inc | 11 | require conf/machine/include/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 -mtune=generic -mfpmath=sse -mavx2', '', d)}" | 15 | TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'skylake', ' -march=skylake ${SKYLAKE_TUNE} -mfpmath=sse', '', d)}" |
16 | 16 | ||
17 | # Extra tune selections | 17 | # Extra tune selections |
18 | 18 | ||
@@ -23,6 +23,26 @@ 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 | 25 | ||
26 | # Disable QEMU user | 26 | |
27 | # Disable QEMU usermode by default (get avx2) | ||
27 | MACHINE_FEATURES_remove = "qemu-usermode" | 28 | MACHINE_FEATURES_remove = "qemu-usermode" |
28 | 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 | " | ||