From f75009ac6d75c5cba0b3226d9a177ed257a17d20 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Wed, 26 May 2021 17:32:38 +0200 Subject: core/pacman: well, we fix again ... --- .../replace-i686-by-pentium4-when-architecture-is-auto.patch | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'core/pacman/replace-i686-by-pentium4-when-architecture-is-auto.patch') diff --git a/core/pacman/replace-i686-by-pentium4-when-architecture-is-auto.patch b/core/pacman/replace-i686-by-pentium4-when-architecture-is-auto.patch index 4ec75940..5ad0592e 100644 --- a/core/pacman/replace-i686-by-pentium4-when-architecture-is-auto.patch +++ b/core/pacman/replace-i686-by-pentium4-when-architecture-is-auto.patch @@ -1,5 +1,5 @@ diff --git a/src/pacman/conf.c b/src/pacman/conf.c -index 0f0c2cfb..b05c456d 100644 +index 0f0c2cfb..23744328 100644 --- a/src/pacman/conf.c +++ b/src/pacman/conf.c @@ -18,6 +18,7 @@ @@ -17,14 +17,14 @@ index 0f0c2cfb..b05c456d 100644 + if(strcmp(newarch, "i686") == 0) { + unsigned int eax, ebx, ecx, edx; + __get_cpuid(1, &eax, &ebx, &ecx, &edx); -+ if (ecx & bit_SSE2) ++ if (edx & bit_SSE2) + newarch = strdup("pentium4"); + } free(arch); arch = newarch; } diff --git a/src/pacman/pacman.c b/src/pacman/pacman.c -index 7e810127..2a50fa4b 100644 +index 7e810127..b5bd2a37 100644 --- a/src/pacman/pacman.c +++ b/src/pacman/pacman.c @@ -26,6 +26,7 @@ @@ -45,7 +45,7 @@ index 7e810127..2a50fa4b 100644 + if(strcmp(machine, "i686") == 0) { + int eax, ebx, ecx, edx; + __get_cpuid(1, &eax, &ebx, &ecx, &edx); -+ if (ecx & bit_SSE2) { ++ if (edx & bit_SSE2) { + strncpy(machine, "pentium4", sizeof machine); + machine[sizeof machine-1] = '\0'; + } -- cgit v1.2.3