Skip to content

Commit

Permalink
qemu-usermode: linux-user: force avx1 and avx2 off since they cause i…
Browse files Browse the repository at this point in the history
…ssues in sb2 environment.

[qemu-usermode] linux-user: force avx1 and avx2 off since they cause issues in sb2 environment. JB#51953
  • Loading branch information
krnlyng committed Dec 8, 2020
1 parent 279c5bb commit 15179d5
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 26 deletions.
25 changes: 0 additions & 25 deletions rpm/0001-Force-AVX2-off.patch

This file was deleted.

@@ -0,0 +1,28 @@
From 65c76196ad2679827be8f22eaec229c8ec6f847f Mon Sep 17 00:00:00 2001
From: Frajo Haider <f_haider@gmx.at>
Date: Tue, 8 Dec 2020 10:18:18 +0000
Subject: [PATCH 1/1] linux-user: Force avx1 and avx2 off since they cause
issues in sb2 environment.

---
tcg/i386/tcg-target.inc.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tcg/i386/tcg-target.inc.c b/tcg/i386/tcg-target.inc.c
index ae0228238b..1e47a8f1d0 100644
--- a/tcg/i386/tcg-target.inc.c
+++ b/tcg/i386/tcg-target.inc.c
@@ -3894,8 +3894,8 @@ static void tcg_target_init(TCGContext *s)
*/
asm(".byte 0x0f, 0x01, 0xd0" : "=a" (xcrl), "=d" (xcrh) : "c" (0));
if ((xcrl & 6) == 6) {
- have_avx1 = (c & bit_AVX) != 0;
- have_avx2 = (b7 & bit_AVX2) != 0;
+ have_avx1 = false;//(c & bit_AVX) != 0;
+ have_avx2 = false;//have_avx2 = (b7 & bit_AVX2) != 0;
}
}
}
--
2.26.2

2 changes: 1 addition & 1 deletion rpm/qemu-usermode.spec
Expand Up @@ -31,7 +31,7 @@ Patch13: 0017-Revert-linux-user-Use-safe_syscall-wrapper-for-fcntl.patch
# fix f_flags in statfs64
Patch14: 0018-linux-user-Support-f_flags-in-statfs64-when-availabl.patch

Patch19: 0001-Force-AVX2-off.patch
Patch19: 0001-linux-user-Force-avx1-and-avx2-off-since-they-cause-.patch
Patch20: 0001-linux-user-disable-commpage.patch

BuildRequires: pkgconfig(ext2fs)
Expand Down

0 comments on commit 15179d5

Please sign in to comment.