summaryrefslogtreecommitdiffstats
path: root/conf/machine/include/tune-skylake.inc
diff options
context:
space:
mode:
Diffstat (limited to 'conf/machine/include/tune-skylake.inc')
-rw-r--r--conf/machine/include/tune-skylake.inc26
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 @@
8DEFAULTTUNE ?= "skylake-64" 8DEFAULTTUNE ?= "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
11require conf/machine/include/tune-core2.inc 11require conf/machine/include/tune-corei7.inc
12 12
13# Extra tune features 13# Extra tune features
14TUNEVALID[skylake] = "Enable skylake specific processor optimizations" 14TUNEVALID[skylake] = "Enable skylake specific processor optimizations"
15TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'skylake', ' -march=skylake -mtune=generic -mfpmath=sse -mavx2', '', d)}" 15TUNE_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"
23PACKAGE_EXTRA_ARCHS_tune-skylake-64 = "${PACKAGE_EXTRA_ARCHS_tune-core2-64} skylake-64" 23PACKAGE_EXTRA_ARCHS_tune-skylake-64 = "${PACKAGE_EXTRA_ARCHS_tune-core2-64} skylake-64"
24QEMU_EXTRAOPTIONS_skylake-64 = " -cpu Skylake-Client" 24QEMU_EXTRAOPTIONS_skylake-64 = " -cpu Skylake-Client"
25 25
26# Disable QEMU user 26
27# Disable QEMU usermode by default (get avx2)
27MACHINE_FEATURES_remove = "qemu-usermode" 28MACHINE_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
31SKYLAKE_TUNE .= "${@bb.utils.contains('MACHINE_FEATURES', 'qemu-usermode', ' -mtune=skylake ${QEMU_UNAVAILABLE_ISA}', '-mtune=generic -mavx2', d)}"
32
33QEMU_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"