mirror of
https://github.com/openbsd/ports.git
synced 2026-06-17 23:13:55 +02:00
fix previous; patch had a line commented-out which shouldn't have been,
spotted by Evan Silberman
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user