fix previous; patch had a line commented-out which shouldn't have been,

spotted by Evan Silberman
This commit is contained in:
sthen
2024-02-23 19:45:04 +00:00
parent 597f9e3e5b
commit 97c5bed9e1
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ USE_NOEXECONLY = Yes
USE_NOBTCFI = Yes
GHC_VERSION = 9.6.4
REVISION = 0
REVISION = 1
DISTNAME = ghc-${GHC_VERSION}
CATEGORIES = lang devel
HOMEPAGE = https://www.haskell.org/ghc/
@@ -10,7 +10,7 @@ Index: libraries/text/cbits/measure_off.c
+ uint64_t xcr0;
__get_cpuid_count(7, 0, &eax, &ebx, &ecx, &edx);
// https://en.wikipedia.org/wiki/CPUID#EAX=7,_ECX=0:_Extended_Features
+ // __asm__("xgetbv\n\t" : "=a" (xcr0) : "c" (0));
+ __asm__("xgetbv\n\t" : "=a" (xcr0) : "c" (0));
const bool has_avx512_bw = ebx & (1 << 30);
const bool has_avx512_vl = ebx & (1 << 31);
+ // XCR0 bits 5, 6, and 7